I wanna make an function that converts int to char..
but i just cant figure out how to go through each number contained in an int..
like int a = 123;
use a pointer (maybe?) to point at each number at a time..
I tried this:
But this doesnt work.. cant use array on int.. :(Code:
void itoa(int i, char b)
int a = length(b);
for (int j = 0; j < a ; j++)
b[j] = i[j]; //???
what should I do?