fork download
  1. #include <iostream>
  2.  
  3. bool functionFalse()
  4. {
  5. printf( "functionFalse has been called\n" );
  6. return false;
  7. }
  8.  
  9. bool functionTrue()
  10. {
  11. printf( "functionTrue has been called\n" );
  12. return true;
  13. }
  14.  
  15. int main()
  16. {
  17. if ( functionFalse() )
  18. {
  19. printf( "this line will not be printed\n" );
  20. }
  21.  
  22. if ( functionTrue() )
  23. {
  24. printf( "hi\n" );
  25. }
  26.  
  27. return 0;
  28. }
Success #stdin #stdout 0s 5532KB
stdin
Standard input is empty
stdout
functionFalse has been called
functionTrue has been called
hi