Order of destruction
In what order are a, b, and c destroyed?
struct S { int id; ~S(); };
int main() {
S a{1}, b{2}, c{3};
}
Sign in to answer questions and track your progress
Sign InIn what order are a, b, and c destroyed?
struct S { int id; ~S(); };
int main() {
S a{1}, b{2}, c{3};
}
Sign in to answer questions and track your progress
Sign In