fork download
  1. #include <stdio.h>
  2. #include <stdbool.h>
  3.  
  4. bool f() {
  5. bool isFound = false;
  6. return isFound;
  7. }
  8.  
  9. int main(void) {
  10. // could write simply puts(f() ? "It's true" : "It's false");
  11. if (f()) {
  12. puts("It's true");
  13. } else {
  14. puts("It's false");
  15. }
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 2052KB
stdin
Standard input is empty
stdout
It's false