Sail E0 Webinar
Question
What will be the following code's output if choice = 'R'?
switch(choice)
{
case 'R' : printf("RED");
case 'W' : printf("WHITE");
case 'B' : printf("BLUE");
default : printf("ERROR");break;
}
Options:
A .  RED
B .  RED WHITE BLUE ERROR
C .  RED ERROR
D .  RED WHITE BLUE
E .  ERROR
Answer: Option B

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers