answersLogoWhite

0

I will explain in the easiest way the difference between the function and recursive function in C language.

Simple Answer is argument of the function is differ but in the recursive function it is same:)

Explanation:

Function

int function(int,int)// function declaration

main()

{

int n;

......

......

n=function(a,b);

}

int function(int c,int d)

{

......

......

......

}

recursive Function:

int recursive(int,int)// recursive Function declaration

main()

{

int n;

.....

.....

.....

.....

n=recursive(a,b);

}

int recursive(int a,int b)

{

.....

....

....

....

}

Carefully see, In the recursive Function the function arguments are same.

User Avatar

Wiki User

10y ago

Still curious? Ask our experts.

Chat with our AI personalities

RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
BeauBeau
You're doing better than you think!
Chat with Beau
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve

Add your answer:

Earn +20 pts
Q: What is the difference between function and recursive function?
Write your answer...
Submit
Still have questions?
magnify glass
imp