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

Result of the following program is
main()
{
int i=0;
for(i=0;i<20;i++)
{
switch(i)
case 0:i+=5;
case 1:i+=2;
case 5:i+=5;
default i+=4;
break;}
printf("%d,",i);
}
}
a)0,5,9,13,17
b)5,9,13,17
c)12,17,22
d)16,21
e)syntax error

Answer Posted / shweth

e)sysntax error

Bcoz braces are not put properly. If there is no sysntax
error, means braces r put properly means result would be d)
16,21

Is This Answer Correct ?    6 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a const pointer in c?

1075


What is use of bit field?

1236


where are auto variables stored? What are the characteristics of an auto variable?

1019


What does s c mean in text?

1054


Is c call by value?

967


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1917


What are two dimensional arrays alternatively called as?

1133


Can include files be nested? How many levels deep can include files be nested?

1088


What is call by value in c?

953


What is a #include preprocessor?

1076


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

1036


How can I recover the file name given an open stream or file descriptor?

1030


What is volatile keyword in c?

998


Is there sort function in c?

969


Why is #define used?

1229