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 / madhu
As t = 3,it goes to case 3.But there is no break in that
case so it proceeds further down to default and c becomes 0.
Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Was 2000 a leap year?
How do you search data in a data file using random access method?
What are the properties of union in c?
What are control structures? What are the different types?
What is malloc calloc and realloc in c?
What are compound statements?
Why main function is special give two reasons?
Can 'this' pointer by used in the constructor?
Explain #pragma statements.
Write a program which returns the first non repetitive character in the string?
write a program to find out prime number using sieve case?
What are the 32 keywords in c?
Tell me what are bitwise shift operators?
What is union and structure?
What is typedef?