Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Because the default datatype is int:-

  $ cat z.c
  foo( a, b )
  {
          return( a+b );
  }
  
  main( void )
  {
          return( foo( 3, 4 ) );
  }
  $ gcc z.c
  $ ./a.out
  $ echo $?
  7


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: