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?
|All times are GMT -5. The time now is 11:29 AM.|