I don't understand the output of this little main :
int main(int argc, char **argv) {
char c = '\336';
unsigned int u = (unsigned int) c;
printf("%d\n",u); /* I'm waiting for 222 but no ...*/
exit(EXIT_SUCCESS);
}
Why is this print like my variable is signed int ? How can I to have the value 222 which I want ?
Thank you a lot!