LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Syndicated Linux News (https://www.linuxquestions.org/questions/syndicated-linux-news-67/)
-   -   LXer: int main() vs void main() (https://www.linuxquestions.org/questions/syndicated-linux-news-67/lxer-int-main-vs-void-main-696148/)

LXer 01-09-2009 02:11 PM

LXer: int main() vs void main()
 
Published at LXer:

We’ve been brought up with many different variations of this popular function. Some books/teachers like to write it as “int main”, some write it as “void main” and then there are some who make do with just “main”, forgoing the return type altogether. So, which one out of them is correct? Or does it even make a difference?

Read More...


All times are GMT -5. The time now is 10:02 PM.