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
What are the two forms of #include directive?
Write a code to generate a series where the next element is the sum of last k terms.
What does %c do in c?
how to find binary of number?
What are header files and what are its uses in C programming?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
What is use of integral promotions in c?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
What is the difference between c and python?
Explain pointer. What are function pointers in C?
Explain bitwise shift operators?
how should functions be apportioned among source files?
What is the use of f in c?
What is void c?
Is there anything like an ifdef for typedefs?