Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What does (-'0') mean in C language, for example: s=p[i][j]-'0'. Thank you very much.
What does (-'0') mean in C language, for example: s=p[i][j]-'0'. Thank you very much.
This should be to convert characters into integers, and the mathematical operation between characters refers to the operation between ascll codes. S is an integer variable.

The final result of p[i][j]-'0' is their difference. For example, if p[i][j]=25, then S = 25p[i][j]=A, s=65-48= 17.