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 do you define structure?

1006


What is wrong with this code?

1145


What are keywords in c with examples?

1053


What is structure and union in c?

1088


What is the difference between procedural and functional programming?

1030


What is the most efficient way to count the number of bits which are set in an integer?

1017


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2514


will u please send me the placement papers to my mail???????????????????

1812


Do pointers store the address of value or the actual value of a variable?

1038


Explain the advantages and disadvantages of macros.

1046


Explain the use of bit fieild.

1103


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2217


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

992


What is difference between array and pointer in c?

1048


When do we get logical errors?

1090