Convert char to int in C and C++ - Stack Overflow

PHOTO EMBED

Tue Jan 18 2022 03:28:31 GMT+0000 (UTC)

Saved by @Narutu #javascript

int x = character - '0';  // The (int) cast is not necessary.
content_copyCOPY

https://stackoverflow.com/questions/5029840/convert-char-to-int-in-c-and-c