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

How many types of operator or there in c?

1111


What's the total generic pointer type?

1061


In a byte, what is the maximum decimal number that you can accommodate?

1156


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2426


What is #include called?

1071


What language is lisp written in?

1278


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

1137


What is linear search?

1146


Why is c called c not d or e?

1106


Can the “if” function be used in comparing strings?

1065


What is c language and why we use it?

1086


What are pointers really good for, anyway?

1079


How does placing some code lines between the comment symbol help in debugging the code?

1021


What is the explanation for modular programming?

1231


what is stack , heap ,code segment,and data segment

2714