C Programming What will be the output of the following code fragment?void main(){ printf("%x",-1<<4);} fff2 fff4 fff0 fff1 fff3 fff2 fff4 fff0 fff1 fff3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of this program on an implementation where int occupies 2 bytes?#include void main(){ int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j);} i=5 j=2 the behavior is undefined i=3 j=2 i=4 j=2 i=5 j=2 the behavior is undefined i=3 j=2 i=4 j=2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program?#include#define int char void 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
C Programming What will be the output of the program ?#includevoid main(){ int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m);} 3, 2, 15 2, 3, 20 1, 2, 5 2, 1, 15 3, 2, 15 2, 3, 20 1, 2, 5 2, 1, 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming A preprocessor command comes before the first executable statement need not start on the first column has # as the first character need not start on a new line comes before the first executable statement need not start on the first column has # as the first character need not start on a new line ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int c = - -2; printf("c=%d", c);} 1 -2 2 Error 1 -2 2 Error ANSWER DOWNLOAD EXAMIANS APP