#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
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
formula to convert 2500mmh2o into m3/hr
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
Explain pointer. What are function pointers in C?
What is the purpose of 'register' keyword?
Why main is used in c?
What is assignment operator?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
What is c language & why it is used?
Why c is procedure oriented?
Which is best linux os?
What does the function toupper() do?
What is boolean in c?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?