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++);} 6 Compiler Error 7 5 0 6 Compiler Error 7 5 0 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);} Compiler time error Undefined behavior Segmentation fault/runtime crash 10 Compiler time error Undefined behavior Segmentation fault/runtime crash 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Identify the correct output of the following code:void main(){ int w=10, x=5, y=3, z=3; if( (w < x ) && (y=z++) ) printf("%d %d %d %d", w, x, y, z); else printf("%d %d %d %d", w, x, y, z);} 10 5 3 4 10 5 5 5 10 5 3 3 10 5 4 3 10 5 4 4 10 5 3 4 10 5 5 5 10 5 3 3 10 5 4 3 10 5 4 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the correct statement.I. The scope of a macro definition need not be the entire program.II. The scope of a macro definition extends from the point of definition to the end of the file.III. New line is a macro definition delimiter.IV. A macro definition may go beyond a line. I and II I, II, III and IV I, II and III II and III II, III and IV I and II I, II, III and IV I, II and III II and III II, III and IV ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char a[]="12345"; int i = strlen(a); printf("%d", ++i);} 6 5 7 None of These 6 5 7 None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int c = - -2; printf("c=%d", c);} -2 Error 1 2 -2 Error 1 2 ANSWER DOWNLOAD EXAMIANS APP