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


Please Help Members By Posting Answers For Below Questions

What are high level languages like C and FORTRAN also known as?

686


What is || operator and how does it function in a program?

630


What are the types of data structures in c?

603


What 'lex' does?

719


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3297






What is the function of multilevel pointer in c?

670


Define Spanning-Tree Protocol (STP)

644


Who invented b language?

916


How can you invoke another program from within a C program?

618


What are the functions to open and close the file in c language?

595


Write a factorial program using C.

644


What is c programing language?

615


What are the types of data types and explain?

673


How to declare pointer variables?

686


How do you override a defined macro?

702