C Programming :: Control Instructions - Discussion
Home > C Programming > Control Instructions > MCQs Questions Discussion
13 / 33
What is the output of the below fragment of C code, if i = 3?
if (i >1)c = 2;
else c = 3;
switch (c) {
case 2: printf("CAUTION");
break;
case 3: printf("GOOD BYE");
break;
default : printf("TERROR");
}
if (i >1)c = 2;
else c = 3;
switch (c) {
case 2: printf("CAUTION");
break;
case 3: printf("GOOD BYE");
break;
default : printf("TERROR");
}
ACAUTION
BGOOD BYE
CERROR
DDefault
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!