word(s). If you have any questions or comments, please visit us on the Forums. This item was added on: 2003/01/28. One method to convert an int to a char array is to use sprintf() or snprintf(). This function can be used to combine a number of variables into one, using the same formatting controls as fprintf(). The prototypes: The following example shows some of the ways it can be used. Or, here's the same thing done with sprintf():