C Programming What will be the output of the program ?#includevoid main(){ float arr[] = {12.4, 2.3, 4.5, 6.7}; printf("%d", sizeof(arr)/sizeof(arr[0]));} 7 None of these 5 6 4 7 None of these 5 6 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will happen after compiling and running following code?main(){ printf("%p", main); } None of these. Error Some address will be printed. Will make an infinite loop. None of these. Error Some address will be printed. Will make an infinite loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ? rem = 3.14 % 2.1; rem = modf(3.14, 2.1); Remainder cannot be obtain in floating point division. rem = fmod(3.14, 2.1); rem = 3.14 % 2.1; rem = modf(3.14, 2.1); Remainder cannot be obtain in floating point division. rem = fmod(3.14, 2.1); ANSWER DOWNLOAD EXAMIANS APP
C Programming Identify the correct output of the following code:void main(){ int w=10, x=5, y=3, z=3; if( (w < x ) && (y=z++) ) printf("%d %d %d %d", w, x, y, z); else printf("%d %d %d %d", w, x, y, z);} 10 5 3 4 10 5 5 5 10 5 3 3 10 5 4 3 10 5 4 4 10 5 3 4 10 5 5 5 10 5 3 3 10 5 4 3 10 5 4 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } Syntax error Runtime error 1 2 3 4 4 4 5 6 7 Syntax error Runtime error 1 2 3 4 4 4 5 6 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#define int charvoid main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} sizeof(i)=2 None of These sizeof(i)=1 Compiler Error sizeof(i)=2 None of These sizeof(i)=1 Compiler Error ANSWER DOWNLOAD EXAMIANS APP