When I execute the following code:
I get the output as 228.Code:#include <stdio.h> int main() { char x='ä'; //please note that this is not alphabet 'a' int y=(unsigned char)x; printf("%d",y); return 0; }
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.