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
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
What is declaration and definition in c?
Explain how can you tell whether two strings are the same?
What is bash c?
What is the explanation for the dangling pointer in c?
explain what are pointers?
What are loops c?
What is a method in c?
How macro execution is faster than function ?
Do you have any idea how to compare array with pointer in c?
Why do we use null pointer?
What do you mean by keywords in c?
What does double pointer mean in c?
What are c header files?
What are header files and what are its uses in C programming?