Question: Exercise 4 ( add two numbers represented as reversed strings ) Write a function that accepts two character arrays representing digits of two unsigned integer
Exercise add two numbers represented as reversed strings
Write a function that accepts two character arrays representing digits of two unsigned integer with their digits stored in the reversed order, and returns the integer value representing the sum of these two integers. For example, the function addReversedInt when called on the array char a and char b would return integer value Parameters n and m hold the number of digits stored in arrays a and b respectively. Use the function form Exercise to performs string to integer conversions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
