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 the difference between class and unio?
how is the examination pattern?
What are type modifiers in c?
what is the different bitween abap and abap-hr?
What is the most efficient way to store flag values?
Explain bitwise shift operators?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
What is structure padding in c?
Write a program to print all permutations of a given string.
Where in memory are my variables stored?
Explain what are header files and explain what are its uses in c programming?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
In a switch statement, what will happen if a break statement is omitted?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?