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
With the help of using classes, write a program to add two numbers.
What does c mean?
What are the types of macro formats?
using only #include
What is null pointer in c?
What is union and structure in c?
What is meant by errors and debugging?
what are the 10 different models of writing an addition program in C language?
How can you read a directory in a C program?
What is #pragma statements?
Can the size of an array be declared at runtime?
Why is c called c?
What are the application of void data type in c?
Define Spanning-Tree Protocol (STP)
What is c programming structure?