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
What is meant by inheritance?
What is difference between static and global variable in c?
What is a dynamic array in c?
Explain the advantages and disadvantages of macros.
What are the standard predefined macros?
Who developed c language and when?
In C language, a variable name cannot contain?
What do you mean by dynamic memory allocation in c? What functions are used?
What are the Advantages of using macro
How to declare a variable?
Are the outer parentheses in return statements really optional?
What do header files do?
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
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What is unsigned int in c?