#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case j: printf("BAD");
break;
}
}
Answer Posted / subha raman
yeah..itz mainly syntax error..
there shud not be any declaration of variables..in
case "j"..it must be "case 2"only..
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is identifier in c?
Is null always equal to 0(zero)?
What is use of pointer?
What is the c value paradox and how is it explained?
What is the difference between variable declaration and variable definition in c?
What are the types of data types and explain?
What are the general description for loop statement and available loop types in c?
Can 'this' pointer by used in the constructor?
What is string function in c?
Why is c faster?
What is advantage of pointer in c?
What is spark map function?
Explain how many levels deep can include files be nested?
How can I sort a linked list?
How can I read in an object file and jump to locations in it?