Result of the following program ismain(){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,17b)5,9,13,17c)12,17,22d)16,21e)syntax error

d

Showing Answers 1 - 8 of 8 Answers

Raghavan

  • Jun 27th, 2005
 

e

  Was this answer useful?  Yes

hemant

  • Sep 13th, 2005
 

answer is:e

  Was this answer useful?  Yes

prashant

  • May 16th, 2006
 

16,21

  Was this answer useful?  Yes

vipull

  • Jul 26th, 2006
 

it can be an error since opening brace is missing after switch stmt.. but if dat is made den ans is d

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions