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


Please Help Members By Posting Answers For Below Questions

What is the use of c language in real life?

535


What are the salient features of c languages?

627


Explain what is wrong with this program statement? Void = 10;

768


What is the general form of #line preprocessor?

592


Do array subscripts always start with zero?

788






What does typeof return in c?

640


given post order,in order construct the corresponding binary tree

2325


using for loop sum 2 number of any 4 digit number in c language

1738


What is string constants?

664


What is the difference between far and near ?

691


what will be the output for the following main() { printf("hi" "hello"); }

9348


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1501


Explain how can I read and write comma-delimited text?

661


What is identifier in c?

550


write a program for the normal snake games find in most of the mobiles.

1789