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

Is c dynamically typed?

1161


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1697


What is the use of a conditional inclusion statement in C?

1063


What is the heap in c?

1081


What is string function in c?

983


Explain how do you determine the length of a string value that was stored in a variable?

1152


What is c mainly used for?

1060


What is pointer and structure in c?

1180


What is static and volatile in c?

1221


What is the difference between union and anonymous union?

1305


What is c programing language?

1085


typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

1199


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1985


ATM machine and railway reservation class/object diagram

5250


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

1077