#include <stdio.h>
int main()
{
char c = -65;
unsigned char uc = 191, uc2 = c;
printf("%d %d", uc == c, uc2);
}
expecting 1, because uc is '10111111' and c is '10111111', actual result is 0
#include <stdio.h>
int main()
{
char c = -65;
unsigned char uc = 191, uc2 = c;
printf("%d %d", uc == c, uc2);
}
expecting 1, because uc is '10111111' and c is '10111111', actual result is 0