Answers for "how does -'0' convert a character to int in c++"

C++
1

char to int in c++

char a = '4';
int ia = a - '0';
Posted by: Guest on August-01-2021

Code answers related to "how does -'0' convert a character to int in c++"

Browse Popular Code Answers by Language