Answers for "char to int in c number"

C
8

turn a char into an int in c

int x = character - '0';
Posted by: Guest on November-04-2020
1

char* to int in cpp

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

Code answers related to "C"

Browse Popular Code Answers by Language