fork(2) download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. typedef enum _bool
  5. {
  6. false = 0,
  7. true = 1
  8. } bool;
  9.  
  10. int main(void) {
  11.  
  12. bool x;
  13.  
  14. x = 50;
  15. printf("%d\n", x);
  16.  
  17. x = (bool)50;
  18. printf("%d\n", x);
  19.  
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0s 4400KB
stdin
Standard input is empty
stdout
50
50