0
922views
written 6.1 years ago by |
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);