I was thinking if it is right to use void main or int main for the
main()
All the programs in my book use void main() { ......
whereas when i searched in the net i found that
we cannot use void as a return type for main()
My question is , which is correct (void or int )?
Last edited on
int main() is standard and is therefore 'correct' if you want standard code.
Edit:
What book are you using?
Last edited on