0
What's the difference between void main() and void main(void)?
3 ответов
0
None, develop your own style
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.
- 1
There's none. Many style guides prefer the main() version as this is less verbose and still expressive.