If your values are between [0,255] or [-128,127] you can safely store your integers in a char since these ranges can be represented using a byte. ... If you want to store the string representation of your integer, then you should use itoa() and write each char of the resulting string to your array one by one.
Can integer be stored in char?
C requires int be at least as many bits as char . Therefore, int can store the same values as char (allowing for signed/unsigned differences). In most cases, int is a lot larger than char .
Can you store numbers in char?
The CHAR data type stores any string of letters, numbers, and symbols. It can store single-byte and multibyte characters, based on the database locale. The CHARACTER data type is a synonym for CHAR.