C Programming What will be the output of the following program?#include#define prod(a,b) a*bvoid main(){ int x=3,y=4; printf("%d", prod(x+2,y-1));} 12 15 None of these 11 10 12 15 None of these 11 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:void main(){ extern int i; i=20; printf("%d", sizeof(i));} Compiler Error 20 Linker Error 2 Compiler Error 20 Linker Error 2 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);} the behavior is undefined i=4 j=2 i=3 j=2 i=5 j=2 the behavior is undefined i=4 j=2 i=3 j=2 i=5 j=2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What does the following declaration mean?int (*ptr)[10]; ptr is a pointer to an array of 10 integers ptr is array of pointers to 10 integers ptr is an array of 10 integers ptr is an pointer to array ptr is a pointer to an array of 10 integers ptr is array of pointers to 10 integers ptr is an array of 10 integers ptr is an pointer to array ANSWER DOWNLOAD EXAMIANS APP
C Programming What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) The variable k can’t be initialized. There should be a semicolon at the end of the statement. The variable must always be the letter i when using a for loop. The increment should always be ++k . The commas should be semicolons. The variable k can’t be initialized. There should be a semicolon at the end of the statement. The variable must always be the letter i when using a for loop. The increment should always be ++k . The commas should be semicolons. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} Compilation Error None of these Infinite Loop 5 4 3 2 1 5 5 5 5 5 Compilation Error None of these Infinite Loop 5 4 3 2 1 5 5 5 5 5 ANSWER DOWNLOAD EXAMIANS APP