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...

int main()
{
int i=1;
switch(i)
{
case '1':
printf("hello");
break;
case 1:
printf("Hi");
break;
case 49:
printf("Good Morning");
break;
}
return 0;
}

Answer Posted / hussain reddy

error because duplicate case values

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are local static variables? How can you use them?

1148


What will be your course of action for a push operation?

1112


What does. int *x[](); means ?

1070


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

1095


What is a #include preprocessor?

1154


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

1225


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2696


Is there a way to compare two structure variables?

1121


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1723


What is selection sort in c?

1096


Why c is called object oriented language?

1071


what is the difference between 123 and 0123 in c?

1208


Why is %d used in c?

1007


Explain what is operator promotion?

1086


What is wild pointer in c with example?

1064