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
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
What are # preprocessor operator in c?
Explain union. What are its advantages?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What are the disadvantages of external storage class?
What is c definition?
What is a lvalue
What is zero based addressing?
Explain what are binary trees?
How do we make a global variable accessible across files? Explain the extern keyword?
Is c compiled or interpreted?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
Why pointers are used?
What is dynamic memory allocation?
What is the use of header files?