About char practical

char ch=‘a’;
ch=63999;
ch=(char)(ch+2);
syso(ch);

Sir, will it execute or not because after adding 2 it will be out of range of char .
in my console it is giving a char;

Hi Prashant,
It will execute because range of char is from 0 to 65536 and basically you are trying to print character at ascii value 64001.

Hi @Pm85059
As you are not responding to the thread, I am marking your doubt as resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “Ask Doubt” section, when your doubt is resolved.

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.