What will be output if you will compile and execute the following c code?
#include<stdio.h>
#define max 5
void main(){
int i = 0;
i = max++;
printf("%d", i++);
}
#include<stdio.h>
#define max 5
void main(){
int i = 0;
i = max++;
printf("%d", i++);
}A. 5
B. 6
C. 7
D. 0
E. Compiler Error
Answer: Option E
Solution (By Examveda Team)
main.c: In function ‘main’:main.c:5:12: error: lvalue required as increment operand
i = max++;

to see header file....statement missing
oh great @ Tej Deep
omg!!
Error in the inclusion of header file will throw an error. Look carefully, after #include nothing is mentioned
cause header file name missing