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


Please Help Members By Posting Answers For Below Questions

Was 2000 a leap year?

631


How do you search data in a data file using random access method?

831


What are the properties of union in c?

590


What are control structures? What are the different types?

597


What is malloc calloc and realloc in c?

669






What are compound statements?

625


Why main function is special give two reasons?

945


Can 'this' pointer by used in the constructor?

611


Explain #pragma statements.

604


Write a program which returns the first non repetitive character in the string?

603


write a program to find out prime number using sieve case?

1641


What are the 32 keywords in c?

634


Tell me what are bitwise shift operators?

657


What is union and structure?

570


What is typedef?

674