C Programming What will be the output?void main(){ int a=10, b=20; char x=1, y=0; if(a,b,x,y){ printf("EXAM"); } } Nothing is printed XAM is printed exam is printed Compiler Error Nothing is printed XAM is printed exam is printed Compiler Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Any C program Need not contain any function. None of these Needs input data. Must contain at least one function. Need not contain any function. None of these Needs input data. Must contain at least one function. ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the correct output for the following program.#includevoid main(){ int a=10, b=11, c=13, d; d = (a=c, b+=a, c=a+b+c); printf("%d %d %d %d", d, a, b, c);} 13, 13, 24, 13 50, 13, 24, 50 50, 13, 24, 13 50, 13, 11, 13 13, 10, 24, 50 13, 13, 24, 13 50, 13, 24, 50 50, 13, 24, 13 50, 13, 11, 13 13, 10, 24, 50 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int c[] = {2.8,3.4,4,6.7,5}; int j, *p=c, *q=c; for(j=0;j<5;j++){ printf(" %d ", *c); ++q; } for(j=0;j<5;j++){ printf(" %d ", *p); ++p; }} 2 2 2 2 2 2 3 4 6 5 2 3 4 6 5 2 3 4 6 5 2.8 2.8 2.8 2.8 2.8 2.8 3.4 4 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 2 2 2 2 2 2 3 4 6 5 2 3 4 6 5 2 3 4 6 5 2.8 2.8 2.8 2.8 2.8 2.8 3.4 4 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 15 -5 10 30 1 15 -5 10 30 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming If integer needs two bytes of storage, then maximum value of an unsigned integer is 215 None of these 216 216 – 1 215 – 1 215 None of these 216 216 – 1 215 – 1 ANSWER DOWNLOAD EXAMIANS APP