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 / shruti

nopes we cannot use 'j'... because single qutoes ' ' are
used only for character value.. i.e if it was
char i
switch(i)
then we cud have used it like that..


hence in our case,
it will give a compiler error...

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does double pointer mean in c?

1177


When the macros gets expanded?

1425


Why cant I open a file by its explicit path?

1035


What is spark map function?

1138


Is javascript based on c?

1065


What is "Hungarian Notation"?

1114


Describe explain how arrays can be passed to a user defined function

1100


Does * p ++ increment p or what it points to?

1117


When should a type cast not be used?

1064


Which is the best website to learn c programming?

1078


How can I find out how much free space is available on disk?

1057


Can we add pointers together?

1059


How can I do peek and poke in c?

1078


What is the value of uninitialized variable in c?

1033


Is boolean a datatype in c?

1067