Vidyalelo
C Programming · Q140

Control Structures

Programming · C Programming · question 140

Q140

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

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

Answer: Option C

Solution

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