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++);}

What will be output if you will compile and execute the following c code?

#include<stdio.h>#define max 5void main(){ int i = 0; i = max++; printf("%d", i++);}
Correct Answer Compiler Error

main.c: In function ‘main’:
main.c:5:12: error: lvalue required as increment operand
i = max++;

Related Questions

Comment on the following 2 C programs.
#include  //Program 1int main(){ int a; int b; int c;}#include  //Program 2int main(){ int a; { int b; } { int c; }}