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 are keywords c?
Explain what is wrong in this statement?
What are c header files?
Explain the difference between the local variable and global variable in c?
explain what is an endless loop?
Differentiate between the expression “++a” and “a++”?
What is a stream in c programming?
Is c is a high level language?
Write a program to know whether the input number is an armstrong number.
What are structure members?
What is omp_num_threads?
Can a program have two main functions?
What is a header file?
Can you please explain the scope of static variables?
Explain how do you declare an array that will hold more than 64kb of data?