I am in the process of refactoring a codebase that is written in C, but using a C++ compiler and I want to use a C compiler.
One thing I stumbled upon is that C++ allows extern
arrays to incomplete types, while C does not:
Godbolt demo
Why does C not allow extern arrays with incomplete types?
C does allow extern variables with incomplete types, why are arrays an exception?