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 / mortal
it will print "0" i.e zero since compiler wont get to the
print statement until the value is zero.
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
Explain how can I avoid the abort, retry, fail messages?
What is hash table in c?
Write the control statements in C language
Explain low-order bytes.
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
about c language
What is #include conio h?
Explain what is a static function?
What is a 'null pointer assignment' error?
What is scope of variable in c?
How many levels of indirection in pointers can you have in a single declaration?
Explain the meaning of keyword 'extern' in a function declaration.
What is double pointer in c?
How do I create a directory? How do I remove a directory (and its contents)?
What is the difference between call by value and call by reference in c?