Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to change the character type 1 to plastic type 1 in C language?
How to change the character type 1 to plastic type 1 in C language?
The difference between the two is 48, which is the ascii value of 0.

Int types and char types can be used with each other without converting types.

tea

a;

a =“0”;

a = a-48; Or a = a-' 0 ';; Nothing is unacceptable.