Primitive Recursive Function In C