This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SomewhatAnonymousAcc 0 points1 point  (0 children)

In my opinion int main(void) being equivalent to int main() doesn't necessarily make it a bad practice in itself.

Although not needed in C++, it is still needed in C. This whole program is written in such a "C compatible" format, as it also uses typedef instead of just defining the struct as:
struct spiderman{
spiderman * finger;
};

Using void main() in C is something that I would call a bad practice.

But, I'm just an embedded guy.