Vidyalelo
C Programming · Q150

Control Structures

Programming · C Programming · question 150

Q150

What will be the output of the following C code? #include int main() int a = 1; switch (a) case a: printf("Case A "); default: printf("Default");

A.
Output: Case A
B.
Output: Default
C.
Output: Case A Default
D.
Compile time error
Answer

Answer: Option D

Solution

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