logoalt Hacker News

flohofwoeyesterday at 10:22 PM1 replyview on HN

That had been harmonized with C++ in C23 (e.g. func() is equivalent with func(void) now).

It's not really relevant for main() though, even in older C versions main() works fine and simply means "I don't need argc and argv".


Replies

el_pollo_diabloyesterday at 10:28 PM

This is about a function definition, not a random function declarator. C23 does not change anything in that case.