I have the following code:
char c= 128;
printf("The value of c is %u.", c);
where the output is a large number (rubish!) and not 128.
I expected with an unsigned integer (%u), and with 8 bits (the size of char), I could represent the values 0 to 255. But it only represents up to 127.
What am I missing here? Thanks in advance