And remember that main shall always return int (explicitly, as well), and never something else like void, like some tend to use.
Originally Posted by Adak
io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
Originally Posted by Salem
You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.
Outside of your DOS world, your header file is meaningless.
And remember that main shall always return int (explicitly, as well), and never something else like void, like some tend to use.
I find this sentence confusing to be honest. It is true that the main function must be declared to return an integer, as stated by the previous poster. It is, however, not required to actually have a return statement in this function.