ch=char(68000); This should be an error as 68000 is more than 64000, so out of range
Doubt in data type practical part 8
Hi @rocky12,
when you try to store a number that is out of range in char then some of the bits are dropped … Hence the system provides with absurd values … the same happens in the case if you try to use a negative number.
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.
char ranges from 0 to 65535. Explicitly converting 68000 to char will restart 65536 value as 0 thus starting the counting again from 0 if the value is greater than 65535
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.
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.