#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


Please Help Members By Posting Answers For Below Questions

a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

669


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)

673


formula to convert 2500mmh2o into m3/hr

485


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

592


Explain pointer. What are function pointers in C?

616






What is the purpose of 'register' keyword?

673


Why main is used in c?

575


What is assignment operator?

615


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2189


What is c language & why it is used?

568


Why c is procedure oriented?

556


Which is best linux os?

546


What does the function toupper() do?

643


What is boolean in c?

594


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

572