fork download
  1. #include <stdio.h>
  2.  
  3. char fun(char c) {
  4. printf("%c\n", c);
  5. if (c == 'y') {
  6. return 0xeb;
  7. }
  8.  
  9. return 0x00;
  10. }
  11.  
  12. int main(void) {
  13. char c = getchar();
  14. char b = fun(c);
  15.  
  16. printf("%d\n", sizeof(0xeb));
  17.  
  18. printf("0x%1x\n", b);
  19.  
  20. printf("%d\n", b == 0xeb);
  21.  
  22. if (b == (char) 0xeb) {
  23. printf("yes");
  24. } else {
  25. printf("no");
  26. }
  27.  
  28. return 0;
  29. }
  30.  
Success #stdin #stdout 0.01s 5476KB
stdin
y
stdout
y
4
0xffffffeb
0
yes