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 meant by 'bit masking'?
Why do we use int main?
code for quick sort?
What is the difference between #include
What is optimization in c?
Why do we use & in c?
What is wrong with this declaration?
What are the advantages and disadvantages of pointers?
What are different types of pointers?
What is array in c with example?
What are loops c?
Explain spaghetti programming?
What is character constants?
Explain how can I make sure that my program is the only one accessing a file?
What are operators in c?