2 ms·
main is a special case, but generally () and (void) are different, void meaning that the function cannot have any parameters and empty allowing any number of ar
by zokier 16y ago
main is a special case, but generally () and (void) are different, void meaning that the function cannot have any parameters and empty allowing any number of arguments. Therefore imho is clearer to use main() rather than main(void), indicating that there may be parameters, but we don't care.
http://codepad.org/UGLG7yRm http://codepad.org/UGLG7yRm and http://codepad.org/w2GyTkB1 http://codepad.org/w2GyTkB1