Yes, C99 specifies that main() should be of type int, and most modern compilers will flag void main() as an error. This wasn’t always the case, and some compilers may still let you get away with it.
Yes, C99 specifies that main() should be of type int, and most modern compilers will flag void main() as an error. This wasn’t always the case, and some compilers may still let you get away with it.