I have the following method that gets two int variables as a parameter and I need to concatenate these two values into a char * variable, but for this to be possible it is necessary for these two int variables to be converted to char *.
void exemplo(int amountVariables1, int amountVariables2){
char *strPosition;
//código para conversão de amountVariables1 e amountVariables2.
strPosition = strcat(amountVariables1, amountVariables2);
}
How do I perform type conversion so that I can concatenate these variables?