0
unsigned char x=300; printf("%d",x);
Output is 44 anyone explain why?
2 Respostas
+ 4
unsigned char has a range of 256 integer values from 0 through 255. Setting x to 300 causes an overflow and the value wraps around by the remaining amount.
300 - 256 = 44
+ 2
Thnx