Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to convert char to int in c++

int x  = '9' - 48;//converts '9' to 9 as an int
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #char #int
ADD COMMENT
Topic
Name
7+8 =