Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - In C language, what does it mean to subtract '0' (zero) or add '0' (zero) to an array element? That is - '0' or + '0', the procedure is as follows:
In C language, what does it mean to subtract '0' (zero) or add '0' (zero) to an array element? That is - '0' or + '0', the procedure is as follows:

Character types all correspond to ASCLL, for example, the character '1' corresponds to 49, '0' corresponds to 48,

Usually - '0', is a character Type numbers are converted into integer numbers, for example

The corresponding ASCLL code of '3' - '0' is 51-48, and the result is 3,

So the character '3' Convert to number 3