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

Explain how can a program be made to print the line number where an error occurs?

1223


What is the translation phases used in c language?

1124


Explain the process of converting a Tree into a Binary Tree.

2672


What is c language and why we use it?

1078


How can I discover how many arguments a function was actually called with?

1070


What is the general form of #line preprocessor?

1005


what do you mean by enumeration constant?

1015


What are keywords c?

1033


What does main () mean in c?

1102


Explain union.

1176


Why is c still so popular?

1050


How will you find a duplicate number in a array without negating the nos ?

2136


How many parameters should a function have?

1198


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

1245


How can I manipulate individual bits?

1044