These are chat archives for FreeCodeCamp/DataScience

11th
Nov 2015
akshay11009
@akshay11009
Nov 11 2015 12:42
Someone please help me in recursion , in the following code what is actually happening

include <stdio.h>

int factorial(unsigned int i) {

if(i <= 1) {
return 1;
}
return i * factorial(i - 1);
}

Rex Schrader
@SaintPeter
Nov 11 2015 20:50
@akshay11009 I'm afraid you have the wrong room, possibly the wrong website entirely. We do Javascript, not C.
Joe Hill
@cupofjoey
Nov 11 2015 20:55
JS has recursion. I just can’t help anyone with it. :)