int x = 12345;
char xc[20];
printf("%d ",x); -Output to the screen.
sprintf(xc," %d ",x); -written in character format and stored in character array xc[20];
printf("%s ",xc); -and then output to the screen.