When I execute the following code:
I get the output as 228.Code:
char x='ä'; //please note that this is not alphabet 'a'
int y=(unsigned char)x;
But the output should be '132' which corresponds to that extended
ascii character according to http://www.asciitable.com/
Why do i get this and what am i missing here?
Thanks in advance.