What will be the output of the following C code?
#include <stdio.h>
#define Cprog
int main()
{
int a = 2;
#ifdef Cprog
a = 1;
printf("%d", Cprog);
}
#include <stdio.h>
#define Cprog
int main()
{
int a = 2;
#ifdef Cprog
a = 1;
printf("%d", Cprog);
}A. No output on execution
B. Output as 1
C. Output as 2
D. Compile time error
Answer: Option D

Join The Discussion