Is it true global variable may have several declaration but only one definition?

1 answer

Answer

1174564

2026-08-07 19:56

+ Follow

Yes, indeed it is.

In all the declarations, you need to use the keyWord "extern".

Rgds,

Karthick S.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.