ArraySumOfTwoArrays (compilation error )

When you add 2 numbers, there may be a carry over also. You have not considered that anywhere. If adding the previous elements of the array gives a carry over then you need to add it to the next set of elements. Further, when you perform addition, you always start adding from the end, not from the front. Keeping these points in mind, you will need to make changes to your code.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.