What is the output of this program?
#include
#define i 5
int main()
{
#define i 10
printf("%d",i);
return 0;
}
Answer: B
The preprocessor directives can be redefined anywhere in the program. So the most recently assigned value (#define i 10) will be taken.