Answers for "c++ char to int not ascii"

C++
1

char* to int in cpp

int x = std::stoi("42")
Posted by: Guest on June-24-2020
1

char to int in c++

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

Browse Popular Code Answers by Language