Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

#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

write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2139


Difference between Function to pointer and pointer to function

1089


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

1233


What is function pointer c?

1120


In C, What is the #line used for?

2214


What is a c token and types of c tokens?

1069


Explain what header files do I need in order to define the standard library functions I use?

1173


Why enum is used in c?

964


What is variable in c example?

1078


Define VARIABLE?

1172


Define Array of pointers.

1112


Differentiate between the = symbol and == symbol?

1302


What is hashing in c language?

1322


Explain what is dynamic data structure?

1171


find the sum of two matrices and WAP for it.

1143