#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
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Difference between Function to pointer and pointer to function
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What is function pointer c?
In C, What is the #line used for?
What is a c token and types of c tokens?
Explain what header files do I need in order to define the standard library functions I use?
Why enum is used in c?
What is variable in c example?
Define VARIABLE?
Define Array of pointers.
Differentiate between the = symbol and == symbol?
What is hashing in c language?
Explain what is dynamic data structure?
find the sum of two matrices and WAP for it.