What is the output of the following progarm?
#include<stdio.h>
main( )
{
int x,y=10;
x=4;
y=fact(x);
printf(ā%d\nā,y);
}
unsigned int fact(int x)
{
return(x*fact(x-1));
}
A. 24
B. 10
C. 4
D. none
Answer Posted / kalyan chukka
A.24
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
Is it possible to initialize a variable at the time it was declared?
How do you define structure?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
What is the difference between arrays and pointers?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
What is the use of in c?
If fflush wont work, what can I use to flush input?
What is variables in c?
Differentiate between new and malloc(), delete and free() ?
How does free() know explain how much memory to release?
What is typedef?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
Is stack a keyword in c?
Which is an example of a structural homology?