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