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
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What is a structural principle?
Can you explain the four storage classes in C?
Can we replace the struct function in tree syntax with a union?
Is c still used?
What's the difference between constant char *p and char * constant p?
Why is c used in embedded systems?
What are register variables in c?
Explain built-in function?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
How do you construct an increment statement or decrement statement in C?
Are the variables argc and argv are local to main?
What is void main ()?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
How will you declare an array of three function pointers where each function receives two ints and returns a float?