Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC++constructors and destructorsSingle-choice MCQ

In what order are local objects destroyed at the end of this block?

struct Logger { char id; Logger(char c) : id(c) {} ~Logger() { std::cout << id; } }; int main() { Logger a('A'); Logger b('B'); Logger c('C'); }