How do you convert a character array into a integer array? For example:
If the character array is entered as'12' then how can get an integer array that contains the integers 1 and 2?
User Profile
Collapse
-
Converting character array to integer array
-
I am new to programming and I really don't understand what you just posted. -
Arrays
This is an assignment that my teacher gave to me:
Write a program that reads two positive integers that are 20 or fewer digits in length and then ouputs their sum. Your program will read the digits as values of type char so that the number 1234 is read in as the four characters '1', '2', '3', '4'. After they are read into the program that characters are changed to values of type int. The digits will be read into a partially filled...
No activity results to display
Show More
Leave a comment: