Global Definition Vs Global Declaration

Alexander Monakov amonakov@ispras.ru
Thu Apr 5 16:13:00 GMT 2012


Hi,

Unless my knowledge of C is wrong here, both 'int i' and 'extern int i' are
indistinguishable declarations (not definitions).  An explicit initialization
would be needed to make the second a definition: int i = 0.  Isn't this the
case here?

Alexander



More information about the Gcc-help mailing list