3 ms·
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
by flohofwoe 1y ago
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".
- el_pollo_diablo 1y agoThis is about a function definition, not a random function declarator. C23 does not change anything in that case.