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
How can you find the day of the week given the date?
while initialization of array why we use a[][2] why not a[2][]...?
How can I convert a number to a string?
What are linker error?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
what is the significance of static storage class specifier?
What is the purpose of & in scanf?
What is an array? What the different types of arrays in c?
Why is it that not all header files are declared in every C program?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is header file in c?
What is variable initialization and why is it important?
Explain output of printf("Hello World"-'A'+'B'); ?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What is c definition?