When I execute the following code:
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;
  }
I get the output as 228.
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.