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 | 9 No |
Post New Answer View All Answers
What is a const pointer in c?
What is use of bit field?
where are auto variables stored? What are the characteristics of an auto variable?
What does s c mean in text?
Is c call by value?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
What are two dimensional arrays alternatively called as?
Can include files be nested? How many levels deep can include files be nested?
What is call by value in c?
What is a #include preprocessor?
How can a program be made to print the line number where an error occurs?
How can I recover the file name given an open stream or file descriptor?
What is volatile keyword in c?
Is there sort function in c?
Why is #define used?