Why are '\x90' and 0x90 different from each other. I understand that one is hexadecimal escape sequence and other is hexadecimal number . However if I convert them to decimal I get 144 , which should be the value for both '\x90' and 0x90 . Also, book says that '\x90' is negative value whereas 0x90 is positive.
To my knowledge char is only 1 byte and int is 4 , so we would get
char '\x90' = 1001 0000 ( 1 byte,8 bits)
int 0x90 = 1001 0000 0000 0000 0000 0000 0000 0000 (4 byte,32 bits)
Still I fail to understand why the char x90 is negative and leads to difference value than int 0x90.
My question is not about char signed and unsigned , although that relates to my question, I am asking about the into values of those characters..