CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Unsigned char Wraps Around

C code walkthrough · Question 33
hardCasting

Code

Read carefully. What does this print?
1#include <stdio.h>
2int main() {
3 unsigned char x = 250;
4 x = x + 10;
5 printf("%d\n", x);
6 return 0;
7}

Your answer