I want to understand the external linkage and internal linkage and their difference.
I also want to know the meaning of
constva
Basically
extern linkage variable is visible in all filesinternal linkage variable is visible in single file.Explain: const variables internally link by default unless otherwise declared as extern
external linkageconst global variable is internal linkageextern const global variable is external linkageA pretty good material about linkage in C++
http://www.goldsborough.me/c/c++/linker/2016/03/30/19-34-25-internal_and_external_linkage_in_c++/