fun(int x) { if(x > 0) fun(x/2); printf("%d", x); } above function is called as: fun(10); what will it print? }
0 1 2 5 10 is the answer. But can anybody explain why the printing order 0 1 2 5 10. Why not 10 5 2 1 0 ? please... Is it depends on stack allocation??