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
What is pointer and structure in c?
Write a program to print numbers from 1 to 100 without using loop in c?
What does char * * argv mean in c?
write a program to rearrange the array such way that all even elements should come first and next come odd
Why header file is used in c?
How to declare a variable?
what is the role you expect in software industry?
Explain how to reverse singly link list.
Explain what is meant by high-order and low-order bytes?
explain what is an endless loop?
What is a pragma?
What are types of functions?
What is equivalent to ++i+++j?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
what are the advantages of a macro over a function?