Can someone please help me with this code? I need the detailed explanation of what does it do...I'm a bit unclear with recursive functions...
code:
Code:#include <stdio.h>
int f (int *a, int b) {
int c;
(a*)--;
if (b>0) c = f( &b,*a);
else return *a;
return b + c;
}
void main () {
int x;
x = 5;
printf ("%d", f(&x, 1));
}