Array-sum of two arrays

sir i am not getting the 3rd step which u told that where to use m-1 and n-1 in while loop

here is the pseudo code:
k=0
carry=0
while(m>=0 && n>=0){
c[k] = a[n]+b[m]+carry
carry = c[k]/10
c[k] = c[k]%10
k++
m–
n–
}

now
while(n>=0){
c[k] = a[n]+carry
carry = c[k]/10
c[k] = c[k]%10
k++
n–
}
while(m>=0){
c[k] = b[m]+carry
carry = c[k]/10
c[k] = c[k]%10
k++
m–
}
also at last if carry>0
c[k] = carry

I hope now you got it.