fun(int x)
{
if(x > 0)
fun(x/2);
printf("%d", x);
}
above function is called as:
fun(10);
what will it print?
}
Answer Posted / mortal
it will print "0" i.e zero since compiler wont get to the
print statement until the value is zero.
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
What are the similarities between c and c++?
What is structure in c language?
Explain indirection?
Do you know the use of 'auto' keyword?
What is the best way to comment out a section of code that contains comments?
Can you write the function prototype, definition and mention the other requirements.
Can include files be nested? How many levels deep can include files be nested?
Why #include is used in c language?
What is an array? What the different types of arrays in c?
What is #error and use of it?
Explain what is the best way to comment out a section of code that contains comments?
What are the salient features of c languages?
What is optimization in c?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer