Vidyalelo
C Programming · Q100

Control Structures

Programming · C Programming · question 100

Q100

What will be the output of the following C code? #include #define max(a) a int main() int x = 1; switch (x) case max(2): printf("yes "); case max(1): printf("no "); break;

A.
yes no
B.
yes
C.
no
Answer
D.
Compile time error

Answer: Option C

Solution

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