[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

2 / 33

What is the output of the following 'C' program?

#include<stdio.h>
main()
{
int i=1,j=2;
switch(i)
{
case 1:  printf("GOOD");
break;
case j:  printf("BAD");
break;
}
}

ACompiler error: case label does not reduce to an integer constant

BGOOD

CBAD

DNone of these

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!