I have a char array like the following
charArray[0] = '1'
charArray[1] = '2'
charArray[2] = '3'
charArray[3] = '4'
charArray[4] = '5'
How to combined the char value of above array into a int
like the following ?
But I don't want to combined all the value in to a int
I only want to combined charArray[0]~charArray[3]
into int
int number = 1234;
How to combined the char value of above array into a string ?