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 I change the size of the dynamically allocated array?
What is wrong with this program statement?
write a program to find out prime number using sieve case?
What are shell structures used for?
Which is better oop or procedural?
What is pointer to pointer in c language?
How can I run c program?
Explain what does the function toupper() do?
What is the maximum length of an identifier?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
When can a far pointer be used?
What are the standard predefined macros?
What is a stream in c programming?
Explain how can I avoid the abort, retry, fail messages?