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 4(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[]={'3','2','1'} and char b[]={'6','5','4'} would return integer value 579. Parameters n and m hold the number of digits stored in arrays a[] and b[] respectively. Use the function form Exercise 3 to performs string to integer conversions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!