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 / raj

0 1 2 5 10...Please don't post the wrong answer.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

1667


Explain union. What are its advantages?

680


Explain what is the difference between far and near ?

719


When should we use pointers in a c program?

706


Explain the ternary tree?

675






What is a file descriptor in c?

637


What is the scope of local variable in c?

640


What are linked lists in c?

722


What is an lvalue?

699


program to convert a integer to string in c language'

2051


Differentiate between a for loop and a while loop? What are it uses?

745


How do I determine whether a character is numeric, alphabetic, and so on?

698


what is the difference between class and unio?

1941


What are identifiers in c?

719


Differentiate between new and malloc(), delete and free() ?

747