Sum of two arrays

sir what is the mistake in this code
still it is not giving the correct ans

your approach is not correct

your code in not printing any output

correct approach is

  1. take 3 variables i ,j and k
  2. iterate on both arrays form end
  3. add two digits and carry then save the last digit of result on third array
    add remaining to carry

at last append carry to resultant array

and print the resultant array in reverse order

Reference Code