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 / mayank sharma
when the control will encounter break statement.it will move
outside the loop. which will not pass through printf();and
also braces are not properly put
Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
How to define structures? ·
provide an example of the Group by clause, when would you use this clause
What does 2n 4c mean?
What is stack in c?
What is the best organizational structure?
What is wild pointer in c?
Write a code to generate divisors of an integer?
How do you define CONSTANT in C?
What does typedef struct mean?
Why calloc is better than malloc?
Under what circumstances does a name clash occur?
Explain what is meant by high-order and low-order bytes?
What is 1d array in c?
How many data structures are there in c?
What is c variable?