0

What's the difference between void main() and void main(void)?

30th Jul 2016, 1:32 PM
Hossein Allahresani
Hossein Allahresani - avatar
3 Answers
0
None, develop your own style
30th Jul 2016, 2:12 PM
denis
denis - avatar
0
@denis: You might develop your own style, I'd it's better than the existing stuff. Otherwise stick to that because style guides are not only there to make code readable by a proper selection of the formatting but also to the fact that all programmers in a team or company adhere to it. Consistency matters a lot when trying to read bigger code bases.
30th Jul 2016, 2:23 PM
Stefan
Stefan - avatar
- 1
There's none. Many style guides prefer the main() version as this is less verbose and still expressive.
30th Jul 2016, 2:10 PM
Stefan
Stefan - avatar