Originally Posted by xpi0t0s
Answer must be tail recursion then:
void test2a(int i)
Wow! at last...
Tail recursion is the only way to implement loop logic.. this process is used in PLT scheme.Take another example from me:-
void ForLoop(int i,int n)
static int count;
printf("loop ended with count= %d", count);
believe me you can implement any loop program using tail recursion.