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 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two forms of #include directive?

646


Write a code to generate a series where the next element is the sum of last k terms.

742


What does %c do in c?

590


how to find binary of number?

3447


What are header files and what are its uses in C programming?

641






process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1895


What is use of integral promotions in c?

668


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1256


What is the difference between c and python?

588


Explain pointer. What are function pointers in C?

630


Explain bitwise shift operators?

634


how should functions be apportioned among source files?

627


What is the use of f in c?

561


What is void c?

571


Is there anything like an ifdef for typedefs?

708