I am trying to generate a sequence like the one below:
by definition 0!=1
Below is my code for this problem, I am getting an error - passing arg 1 of fact makes pointer from integer without a cast
Kindly help me out in debugging this error, I have tried changing int a to *a but to no avail. Thank you for your help.
int fact(int a);
a[i]= fact(a[i-1])+ fact(a[i-2]);
int fact(int a)