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 the right way to use errno?
What is wild pointer in c with example?
What are the different types of errors?
If fflush wont work, what can I use to flush input?
Explain what are its uses in c programming?
How do I determine whether a character is numeric, alphabetic, and so on?
What is the equivalent code of the following statement in WHILE LOOP format?
What is the symbol indicated the c-preprocessor?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
Is there sort function in c?
How do I round numbers?
write an algorithm to display a square matrix.
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What are the 5 types of organizational structures?
What is chain pointer in c?