180. Static Memory

Question.5

Two translation units have dependent statics:

file_a.cpp:

int global_a = 10;

file_b.cpp:

extern int global_a;
int global_b = global_a + 1;  // Depends on global_a

Is global_b guaranteed to be 11?

Need Help? Refer to the Quick Guide below

Select Answer