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
Compare interpreters and compilers.
Write a program to print fibonacci series without using recursion?
Explain about block scope in c?
What is the value of c?
Write a code to generate a series where the next element is the sum of last k terms.
What is identifiers in c with examples?
explain what is fifo?
explain what is an endless loop?
What is wrong with this statement? Myname = 'robin';
What is the difference between the expression “++a” and “a++”?
Define macros.
Differentiate between full, complete & perfect binary trees.
How to get string length of given string in c?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above