I want to cast a (long) integer into a char array in C. So, for example:
int a = 65;
// I would like to get: "65"
// But I am having the conversion to the corresponding ascii when I do:
printf("%c", (char) a);
// "A"
EDIT: In my example I am printing, but what I actually want is to store the char into a variable for further manipulation.
I think this should be a super simple question, but I didnt manage to find the answer, so I thought that maybe I am not posing the question correctly. So if anyone can correct the question statement I would be grateful too.
itoa?