5 ms·
That's not actually true in this case. The author is correct about this. When "int i = 10;" is encountered, the tentative definition behaves effectively as a d
by sirclueless 12y ago
That's not actually true in this case. The author is correct about this.
When "int i = 10;" is encountered, the tentative definition behaves effectively as a declaration. If the compiler were to reach the end of the translation unit and the variable i was never defined elsewhere, however, "int i;" serves as a definition.
- shele 12y agoIn think it is the other way around - the declaration is a tentative definition, so a definition unless there is a definition at file scope.