Can a variable be declared both static and extern?
This is specifically given as an example in the C++ standard when it’s discussing the intricacies of declaring external or internal linkage. It’s in section 7.1.1.7, which has this exert: static int b ; // b has internal linkage extern int b ; // b still has internal linkage extern int d ; // d … Read more