經安全檢測,此網站為安全網站,請放心前往原始網址!

Char to int conversion in C - Stack Overflow

If I want to convert a single numeric char to it's numeric value, for example, if: char c = '5'; and I want c to hold 5 instead of '5', is it 100% portable doing it like this? c = c - '0'; I ...

stackoverflow.com

網址安全性掃描由 google 提供