View Single Post
Old 2020-12-08, 22:00   #2
Nick's Avatar
Dec 2012
The Netherlands

2·839 Posts

I tend to program defensively and avoid C's concept of "tentative definitions".
If a variable declaration initializes the variable then the compiler must regard it as a definition.
If a variable declaration says "extern" instead then the compiler must view it as merely a declaration
(or have they changed the rules again?)
Nick is offline   Reply With Quote