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.
Chat with our AI personalities
gffg
Girraf
We can access a Friend function from any other class in which friend function is introduced or declared even if the other class is not a member of first class. But when we use normal member function, we can have its access only in the derived classes of the first class. This is the basic difference between a friend function and a normal member function.
The print function is slightly more dynamic than the echo function by returning a value, and the echo function is slightly (very slightly) faster. The printf function inserts dynamic variables/whatever into wherever you want with special delimiters, such as %s, or %d. For example, printf('There is a difference between %s and %s', 'good', 'evil') would return 'There is a difference between good and evil'.
The objective of a water supply it to get water into houses. The function of the pipe it to carry that water and the function of a tap is to control the flow of the water.