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

Guest & Raj is correct.......
Please don't post the wrong answer if u r not clear about this

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does it mean when a pointer is used in an if statement?

610


How can I get back to the interactive keyboard if stdin is redirected?

675


What is realloc in c?

585


What is wrong with this program statement? void = 10;

830


Which is better oop or procedural?

640






What is the deal on sprintf_s return value?

647


difference between native and cross compilers

1679


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

1593


Can static variables be declared in a header file?

622


What would be an example of a structure analogous to structure c?

580


What are the different types of objects used in c?

583


Explain function?

667


What are the restrictions of a modulus operator?

643


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

739


Can we declare variable anywhere in c?

545