fork download
  1. #include <stdio.h>
  2.  
  3. int A(void) {
  4. printf("A function \n");
  5. return 1;
  6. }
  7. int B(void){
  8. printf("B function \n");
  9. return 0;
  10. }
  11. int main(void) {
  12. // your code goes here
  13. if (A() && B()){
  14. printf("Main function \n");
  15. }
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 4356KB
stdin
Standard input is empty
stdout
A function 
B function