O'Reilly logo
  • Alain O'Dea thinks this is interesting:

int main() {


Cover of Hacking: The Art of Exploitation, 2nd Edition


While it works in practice, it's a bad example to declare a function as int and not have a return statement. If main succeeds it is meant to return EXIT_SUCCESS (from stdlib.h) or 0. If it fails it can return non-zero codes defined by the program (preferably semi-standard ones like those in BSD's sysexits.h).