C | Macro & Preprocessor | Question 12

Last Updated :
Discuss
Comments
Predict the output of following program? C
#include <stdio.h>
#define MAX 1000
int main()
{
   int MAX = 100;
   printf("%d ", MAX);
   return 0;
}
1000
100
Compiler Error
Garbage Value
Tags:
Share your thoughts in the comments