long main(){}
compiled on an x86_64 system: main-return.cpp:1: error: '::main' must return 'int'
Too bad; we seem to be stuck with 32-bit return values from processes ($?) forever.
Though the shell seems to limit to 8 bits with echo $?
#include <cstdlib> int main(int argc,char**argv){ if(argc>1){ return atoi(argv[1]); } }
No comments :
Post a Comment