#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case j: printf("BAD");
break;
}
}
Answer Posted / moolshankershukla
#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case j: printf("BAD");
break;
}
}
given above program is wrong only we can one changes and
will be run .
correct program is:
#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case 2: printf("BAD");
break;
}
}
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of 'register' keyword in c language?
why we wont use '&' sing in aceesing the string using scanf
What are the types of unary operators?
What are the two types of functions in c?
If errno contains a nonzero number, is there an error?
What are the different types of control structures?
What is cohesion and coupling in c?
Why should I use standard library functions instead of writing my own?
What is the usage of the pointer in c?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
Why is sizeof () an operator and not a function?
How many data structures are there in c?
Explain what is the concatenation operator?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
Explain zero based addressing.