C Programming Determine Output:#define prod(a,b) a*bvoid main(){ int x=3, y=4; printf("%d", prod(x+2, y-1));} 10 11 15 12 10 11 15 12 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output of the following program code.#includevoid main(){ int a, b=7; a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a; printf("%d %d", a, b);} 8 3 None of these 3 7 3 8 7 3 8 3 None of these 3 7 3 8 7 3 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);} Segmentation fault/runtime crash Undefined behavior 10 Compiler time error Segmentation fault/runtime crash Undefined behavior 10 Compiler time error ANSWER DOWNLOAD EXAMIANS APP
C Programming The declarationint (*p) [5];means None of these. p is a pointer to a 5 elements integer array. p is one dimensional array of size 5, of pointers to integers. The same as int *p[ None of these. p is a pointer to a 5 elements integer array. p is one dimensional array of size 5, of pointers to integers. The same as int *p[ ANSWER DOWNLOAD EXAMIANS APP
C Programming Functions have .......... Function scope Block scope No scope at all Local scope File scope Function scope Block scope No scope at all Local scope File scope ANSWER DOWNLOAD EXAMIANS APP
C Programming The function sprintf() works like printf(), but operates on .......... string stderr stdin Data file no such function in 'C'. string stderr stdin Data file no such function in 'C'. ANSWER DOWNLOAD EXAMIANS APP