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 / deepa
syntax error every case statement requires a break statement
| Is This Answer Correct ? | 7 Yes | 32 No |
Post New Answer View All Answers
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
When should volatile modifier be used?
What does c mean in standard form?
Is sizeof a keyword in c?
What are the benefits of organizational structure?
Is it possible to pass an entire structure to functions?
Suggesting that there can be 62 seconds in a minute?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
How does pointer work in c?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
What are the application of void data type in c?
How can I do graphics in c?
What is wrong in this statement?
Why static is used in c?
Why is main function so important?