C Programming Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ? Remainder cannot be obtain in floating point division. rem = modf(3.14, 2.1); rem = fmod(3.14, 2.1); rem = 3.14 % 2.1; Remainder cannot be obtain in floating point division. rem = modf(3.14, 2.1); rem = fmod(3.14, 2.1); rem = 3.14 % 2.1; ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int a[] = {10,20,30,40,50}, j, *p; for(j=0; j<5; j++){ printf("%d" ,*a); a++; } p = a; for(j=0; j<5; j++){ printf("%d" ,*p); p++; }} 10 20 30 40 50 10 20 30 40 50 Error None of These 10 20 30 40 50 Garbage Value 10 20 30 40 50 10 20 30 40 50 Error None of These 10 20 30 40 50 Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of following program code?#include int main(void){ char p; char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8}; p = (buf + 1)[5]; printf("%d", p); return 0;} None of these 6 Error 9 5 None of these 6 Error 9 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following program?#includeint c[10] = {1,2,3,4,5,6,7,8,9,10}; main(){ int a, b=0; for(a=0;a<10;++a) if(c[a]%2 == 1) b+=c[a]; printf("%d", b);} 30 25 None of these 20 24 30 25 None of these 20 24 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#include#includevoid main(){ char str1[20] = "Hello", str2[20] = " World"; printf("%s", strcpy(str2, strcat(str1, str2)));} World Hello Hello World None of these WorldHello World Hello Hello World None of these WorldHello ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} 10 Undefined behavior Segmentation fault/runtime crash Compiler time error 10 Undefined behavior Segmentation fault/runtime crash Compiler time error ANSWER DOWNLOAD EXAMIANS APP