I once had a compiler that threw up an error at “void main()” and forced me to use “int main()” instead...
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.
I once had a compiler that threw up an error at “void main()” and forced me to use “int main()” instead...
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.