Vidyalelo
C Programming · Q86

Control Structures

Programming · C Programming · question 86

Q86

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

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

Answer: Option D

Solution

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