[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

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");
}

ACAUTION

BGOOD BYE

CERROR

DDefault

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!