Character Mapping

Hello Sir/Mam,

My name is Harsh, I’ve a doubt regarding character mapping as you mentioned and performed it practically in this video, as you stored a number 64K in the char and the output was an symbol/character which was mapped to that number.

But when I tried the same thing I keep on getting a Question mark ‘?’ irrespective of the number, i’ve tried everything including typecasting integer to char but the output is always the same, sir/mam do we have to install that particular font in order to read that language???

please share your code once so i can find the error.there must be one

Here it is, it keeps on printing ‘?’

just subtract 0 like
syso(a-0);
syso(b-0);
when you have a char that represents a ASCII/unicode digit (like ‘1’), and you subtract the smallest possible ASCII/unicode digit from it (e.g. ‘0’), then you’ll be left with the digit’s corresponding value (hence, 1)

Because char is the same as short (although, an unsigned short), you can safely cast it to an int. And the casting is always done automatically if arithmetics are involved