fork download
  1. #include <stdio.h>
  2.  
  3. void f( int a1, int a2, int a3 = 5 ) {
  4.  
  5. if( ( a3 + a1 ) == 6 ) puts("yes");
  6. else puts("no");
  7.  
  8. }
  9.  
  10. int main() {
  11.  
  12. f( 1, 2, 3 );
  13. f( 1, 2 );
  14. f( 0, 0, 0 );
  15. f( 0, 0 );
  16. f( 1, 2, 5 );
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
no
yes
no
no
yes