How does comparing something with unsigned char work in C? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How does comparing something with unsigned char work in C?

Started to study the basics of C, can't figure out why ... char a=-5; unsigned char b=5; printf("a>b : %d, a>b); .... is 0 (false), but when trying the same with int and unsigned int is 1.

25th Sep 2019, 8:26 PM
Matrioshkin
Matrioshkin - avatar
0 Answers