Name: Anonymous 2008-04-03 11:50
hey /prog/,
why would you use int main() instead of void main()?
why would you use int main() instead of void main()?
main. The implementation declares no prototype for this function. It shall be defined with a return type of int and with no parameters: int main(void) { /* ... */ } int main(int argc, char *argv[]) { /* ... */ }int can be replaced by a typedef name defined as int, or the type of argv can be written as char ** argv, and so on.''