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
How can you avoid including a header more than once?
What is a string?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
How can I automatically locate a programs configuration files in the same directory as the executable?
In a header file whether functions are declared or defined?
How are structure passing and returning implemented?
Write a program to implement queue.
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
What is bss in c?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
Explain what is the heap?
What is sizeof int in c?
What is pass by value in c?
How does sizeof know array size?