What will be the output of the following C code?
#include<stdio.h>
#define ram 10
main()
{
#ifdef ram
#define ram 20
#endif
printf("%d",ram);
}
#include<stdio.h>
#define ram 10
main()
{
#ifdef ram
#define ram 20
#endif
printf("%d",ram);
}A. 10
B. 20
C. Error
D. 1020
Answer: Option B

Join The Discussion