I have a variable that is a vector of char, and in this vector I need to insert a number that is an integer, fetching it from another variable:
int quantidade;
char id[3] = 'p';
For example, if the quantity is 2, I need the string id to be "p2". How can I do this?