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 the disadvantages of c language?
Why static variable is used in c?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
What are the features of c languages?
What is static memory allocation?
What is character set?
Can you assign a different address to an array tag?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What is function prototype?
What are the advantages of using linked list for tree construction?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
What is a file descriptor in c?
Simplify the program segment if X = B then C ← true else C ← false
Is malloc memset faster than calloc?
What does 3 mean in texting?