Vidyalelo
C Programming · Q148

Function

Programming · C Programming · question 148

Q148

What will be the output of the following C code? #include #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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board