czesc,
mam pewien problem ze specyfikatorami static i extern. Wg standardu ten kod:
static int b; // b has internal linkage
extern int b; // b still has internal linkage
jest ok, bo linkage wszędzie jest taki sam.
Ale wg mnie w drugiej deklaracji linkage powinien być zewnętrzny (external) z powodu jawnego użycia słowa ‘extern’.
Jakby tego słowa tam nie było to OK bo jest napisane:
Pkt 7.1.1.6
dlaczego wiec to jest OK ?