write a programe to find the factorial of given number
using recursion
Answer Posted / hari.11
t fact(int n)
{
if(n==1)
return 1;
else
return(n*fact(n-1));
}
for further queries and discussions, just check these out !!!
http://forum.campusmaniac.com/
http://www.campusmaniac.com/
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Tell me is null always defined as 0(zero)?
Explain what does the function toupper() do?
What is indirection?
Explain high-order bytes.
Why is sprintf unsafe?
What is p in text message?
What is a pointer on a pointer in c programming language?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
what is ur strangth & weekness
Explain bitwise shift operators?
what is the structure pointer?
to find the closest pair
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is array in c with example?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.