Added the two array as numbers and placed the sum in new array and i am getting the garbage value when printing the new array

i have taken two array of size n and m and the sum array of size max(n,m) +1 . From the reverse side of the array i am adding the values present in the 2 arrays and maintaining carry as well . I am inserting the sum%10 into the array . But still getting garbage value when printing my array . Plz help

hello @chandrabhanubajpai

pls save ur code at cb ide and share its link with me

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.