fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. char a = 0xfb;
  6. unsigned char b = 0xfb;
  7.  
  8. printf("a = %c", a);
  9. printf("\nb = %c", b);
  10.  
  11. if ( (char)a == (char) b)
  12. printf("\nSame");
  13. else
  14. printf("\nNot Same");
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
a = �
b = �
Same