You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-09-15 05:51:40
C Language Control Structures Output:
C Programming Quizzes C Language Control Structures
Directions:
What will be the following code's output if choice = 'R'?
Question:
switch(choice)
{
case 'R' : printf("RED");
case 'W' : printf("WHITE");
case 'B' : printf("BLUE");
default : printf("ERROR");break;
}
Option A):
RED
Option B):
RED WHITE BLUE ERROR
Option C):
RED ERROR
Option D):
RED WHITE BLUE
Correct Answer is Option B):
RED WHITE BLUE ERROR
Failure is the first step towards seccess.
Offline
2015-09-15 05:51:40
- Advertisement
- Ads By Google
Re: C Language Control Structures Output:
\n
Pages:: 1