fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("1 && 2 -> %d\n", 1 && 2);
  5. printf("2 && 1 -> %d\n", 2 && 1);
  6. printf("1 || 2 -> %d\n", 1 || 2);
  7. printf("2 || 1 -> %d\n", 2 || 1);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 2052KB
stdin
Standard input is empty
stdout
1 && 2 -> 1
2 && 1 -> 1
1 || 2 -> 1
2 || 1 -> 1