What will be the output of the following C code?
#include
#define san 10
main()
{
#ifdef san
#define san 20
#endif
printf("%d",san);
}
Answer: B
In the code shown above, if the identifier san is defined, then its value is redefined and changed to 20. It is then printed. Hence the output is 20.