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
What is pointer in c?
What is structure in c explain with example?
What is c definition?
What is preprocessor with example?
What is c language and why we use it?
Why is structure important for a child?
If fflush wont work, what can I use to flush input?
Why should I use standard library functions instead of writing my own?
What are logical errors and how does it differ from syntax errors?
How pointers are declared?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
How is a structure member accessed?
What is a pointer in c plus plus?
Explain what are the standard predefined macros?
What is the difference between union and anonymous union?