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
Is c still used?
What is the difference between local variable and global variable in c?
What is the purpose of sprintf() function?
What is the use of pragma in embedded c?
What are multidimensional arrays?
Explain the term printf() and scanf() used in c language?
What is the 'named constructor idiom'?
What are structure members?
What are the scope of static variables?
What does == mean in texting?
What is the difference between the local variable and global variable in c?
What is cohesion in c?
How to compare array with pointer in c?
Define and explain about ! Operator?
What is bubble sort in c?