Fair enough, if you are using loads of for loops you may need a few counters, but I would worry when you've got so many embedded for loops. It might be ok, but hrrm.

[edit]And btw --
Code:
sprintf(&ans[c],"%d",getchar());
Hope that helps you [/edit]

[edit]The above code would still require you to have two character arrays by which point in time it's pointless using that code. I'm feeling a bit stupid this morning :P[/edit]

ac