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 / amit
All are incorrect. Please try it on a machine and see...
The answer is 012510. Please not that it is 0 1 2 5 10 but
without spaces.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are high level languages like C and FORTRAN also known as?
What is || operator and how does it function in a program?
What are the types of data structures in c?
What 'lex' does?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
What is the function of multilevel pointer in c?
Define Spanning-Tree Protocol (STP)
Who invented b language?
How can you invoke another program from within a C program?
What are the functions to open and close the file in c language?
Write a factorial program using C.
What is c programing language?
What are the types of data types and explain?
How to declare pointer variables?
How do you override a defined macro?