convert string to integer in array code example Example: convert string to int array char c = '2'; int asInt = c - '0'; //asInt = 2