I'm having trouble understanding the output of this code:
Code:#include <stdio.h> void a(int num); void b(int num); int main() { a(6); return 0; } void a(int num) { int index; for (index=0; index<num; index++) b(index); } void b(int num) { int index=0; for (index=0; index<num; index++) printf("%d", index); }
Why is it 0012012012301234?
Why is b(0) and b(1) not taken to the account?