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

0 1 2 5 10

Is This Answer Correct ?    23 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the benefit of using #define to declare a constant?

609


Explain what are preprocessor directives?

629


Explain what is the purpose of "extern" keyword in a function declaration?

623


How can you find out how much memory is available?

618


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

1587






Are global variables static in c?

676


Explain what are multibyte characters?

629


Is it acceptable to declare/define a variable in a c header?

688


What is the use of ?: Operator?

669


Write a program to swap two numbers without using the third variable?

597


Why header file is used in c?

577


What is the purpose of macro in C language?

663


What are identifiers c?

566


What does 3 periods mean in texting?

600


Describe explain how arrays can be passed to a user defined function

605