Check out example codes for "how to convert int in to const char in c". It will help you in understanding the concepts better.

Code Example 1

int size;
 char dispsize[100];
 sprintf(dispsize,"%d",size);

Learn ReactJs, React Native from akashmittal.com