Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - In C language, integer variables can be output in character format in all ranges, right?
In C language, integer variables can be output in character format in all ranges, right?
That's right.

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.