fork download
  1. #include <stdio.h>
  2.  
  3. int one(void) {
  4. printf("one()\r\n");
  5. return 1;
  6. }
  7. int zero(void) {
  8. printf("zero()\r\n");
  9. return 0;
  10. }
  11.  
  12.  
  13. int main(void) {
  14. printf("one && zero = %d\r\n", one() && zero());
  15. printf("zero && one = %d\r\n", zero() && one());
  16. printf("one && one = %d\r\n", one() && one());
  17. printf("zero && zero = %d\r\n", zero() && zero());
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
one()
zero()
one && zero = 0
zero()
zero && one = 0
one()
one()
one && one = 1
zero()
zero && zero = 0