0
548views
What is Recursion?
1 Answer
0
1views

When a function in turn calls another function a process of ‘chaining’ occurs. Recursion is a special case of this process, where a function calls itself.

Eg:

1)

main() 
{ 
printf(“Example for recursion”); 
main(); 
}

Functions with Arrays

To pass an array to a called function, it is sufficient to list the name of the array, without any subscripts, and the size of the array as arguments.

Eg:1) largest(a,n);

Please log in to add an answer.