Why is the array of char type

why did you take the array to be of char type and not of int type?

@alankrit.agr99 hey alankrit bhaiya use ascii difference logic to typecast.

but why didn’t he straight away use int?

@alankrit.agr99 hey alankrit there is so many approaches.

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.