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 / ningappa

The above code returns a compiler error:

1.In C functions cannot be made inline.
2.A semi-colon is not expected after switch.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

c program to compute AREA under integral

1797


What is a function in c?

563


Explain how can I manipulate strings of multibyte characters?

769


List some basic data types in c?

549


What is build process in c?

634






When should I declare a function?

611


Write a program to identify if a given binary tree is balanced or not.

672


What is static and auto variables in c?

549


How does normalization of huge pointer works?

617


How do I use strcmp?

626


What is the benefit of using #define to declare a constant?

595


Explain what is a program flowchart and explain how does it help in writing a program?

638


What is a MAC Address?

618


What is the difference between declaring a variable and defining a variable?

710


What is null pointer constant?

586