fork download
  1. #include <stdio.h>
  2. #include <stdbool.h>
  3.  
  4. bool func(int a, int b)
  5. {
  6. if (a > b)
  7. return true;
  8. else
  9. return false;
  10. }
  11.  
  12. int main(void) {
  13. // your code goes here
  14. bool b;
  15. b = func(2, 4)? true: false;
  16. printf("boolean value %d", b);
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
boolean value 0