Re: Global Definition Vs Global Declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux