Vidyalelo
C Programming · Q6

Control Structures

Programming · C Programming · question 6

Q6

In C, what happens if the 'default' case is missing in a 'switch' statement?

A.
It causes a compilation error
B.
It has no effect
Answer
C.
It executes the 'default' case by default
D.
It generates a runtime error

Answer: Option B

Solution

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