Mapped string problem

what is the use of char ch = singleDigitNumber + ‘A’ - 1; and pls explain the execution process

eg :

input :123
u get the digit 1
singleDigitNumber = 1
1+‘A’ - 1
will give u upper case character’
if 2 is encountered
then 2+‘A’-1
would give B
we are dealing with ascii value and then converting to char

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.