You can write it any way you want. As long as the function calls itself, it's recursive.Originally posted by UneducatedOne
I see, is that the only way to write it?
Code:int main() { int z = 0; foo(z); return 0; } void foo(x) { x++; while (x < 5) foo(x); }