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 / vinay
10,5,2,1
after that it terminated.
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Explain Function Pointer?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
What is structure in c explain with example?
Is c++ based on c?
What is function prototype in c language?
Explain what is the stack?
What is a double c?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
How can you allocate arrays or structures bigger than 64K?
What is a lookup table in c?
What are the loops in c?
Write the Program to reverse a string using pointers.
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
Where are local variables stored in c?
What is the advantage of an array over individual variables?