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

0

Is This Answer Correct ?    1 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a stream?

655


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

626


What is assert and when would I use it?

583


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

1962


What are the data types present in c?

631






What is an arrays?

658


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1470


Why is main function so important?

619


Where register variables are stored in c?

554


What is the difference between fread and fwrite function?

642


which is conditional construct a) if statement b) switch statement c) while/for d) goto

741


Why void is used in c?

569


What is difference between Structure and Unions?

644


What is the use of typedef in c?

591


What is ctrl c called?

601