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 / gg
0 1 2 5 10 is the answer. But can anybody explain why the
printing order 0 1 2 5 10. Why not 10 5 2 1 0 ? please...
Is it depends on stack allocation??
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
Which are low level languages?
What is your stream meaning?
Explain pointers in c programming?
What is nested structure?
What is an arrays?
What is c language used for?
What is the deal on sprintf_s return value?
What is pointer to pointer in c?
How do you print an address?
What is a string?
difference between object file and executable file
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
How do I get a null pointer in my programs?