write a programe to find the factorial of given number
using recursion
Answer Posted / hari
int 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 ? | 13 Yes | 4 No |
Post New Answer View All Answers
What do you mean by a sequential access file?
What is data types?
Define Spanning-Tree Protocol (STP)
how to create duplicate link list using C???
What are shell structures used for?
what is the syallabus of computer science students in group- 1?
what is the difference between 123 and 0123 in c?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
What is the difference between class and object in c?
What happens if you free a pointer twice?
what do u mean by Direct access files? then can u explain about Direct Access Files?
What is the purpose of scanf() and printf() functions?
What is unsigned int in c?