Hey guys, I need help converting an int to char??
I have tried using
which works well, however, it can only convert values from 0-9 if i'm correct.Code:char dig = (char)(((int)'0')+result);
I have also tried using the itoa function, but if i use it im gonna need to change a lot of things in my program.
I cant also use sprintf because I'm not gonna use it for printing alone, I want to push the value to a stack.
Any suggestions?? Thanks.