C Programming What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50} 0 10..10 Error 10..50 0 10..10 Error 10..50 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();} Infinite Loop None of these 5 4 3 2 1 5 5 5 5 5 Compilation Error Infinite Loop None of these 5 4 3 2 1 5 5 5 5 5 Compilation Error ANSWER DOWNLOAD EXAMIANS APP
C Programming The statement int **a; is illegal None of these. is legal but meaningless is syntactically and semantically correct is illegal None of these. is legal but meaningless is syntactically and semantically correct ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output if you will compile and execute the following c code?#include#define max 5void main(){ int i = 0; i = max++; printf("%d", i++);} 7 Compiler Error 6 5 0 7 Compiler Error 6 5 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){int a=11,b=5;if(a=5) b++;printf("%d %d", ++a, b++);} 6 7 11 6 12 7 6 6 5 6 6 7 11 6 12 7 6 6 5 6 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 10 Undefined behavior Compiler time error Segmentation fault/runtime crash 10 Undefined behavior Compiler time error ANSWER DOWNLOAD EXAMIANS APP