why we using ‘0’ in digit = a[n-1]-‘0’ ? if i not include will affect my answer.
Dought in the digit =a[n-1] -'0'
@thapliyalsam55 hey subtracting 0 character from a[i] convert it into number which we have to do so if you dont do this then it will affect your answer.