f1()
{
f(3);}
f(int t)
{
switch(t);
{
case 2: c=3;
case 3: c=4;
case 4: c=5;
case 5: c=6;
default: c=0;}
value of c?

Answer Posted / poornima

Initially, switch statement is ended with semicolon.so
cases will not be alone without switch.It is compilation
error.
If semicolon is not there in switch statement answer is
zero.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by inheritance?

620


What is difference between static and global variable in c?

527


What is a dynamic array in c?

582


Explain the advantages and disadvantages of macros.

612


What are the standard predefined macros?

625






Who developed c language and when?

571


In C language, a variable name cannot contain?

729


What do you mean by dynamic memory allocation in c? What functions are used?

638


What are the Advantages of using macro

673


How to declare a variable?

557


Are the outer parentheses in return statements really optional?

566


What do header files do?

593


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

598


which is conditional construct a) if statement b) switch statement c) while/for d) goto

727


What is unsigned int in c?

547