hey all,
i am a newbie and will appreciate your help with this very beginners thread...
i am trying to write a function that will accept an integer and will print it is ASCII value (after conversion) using putchar.
here is what i have so far:
however this function prints the value of i so if my argument was 3 it prints out 3.Code:int my_itoa(int i) { putchar(i+'0'); }
any idea how to get the ASCII value of 51?
thanks a lot.