99. Constructors-I

Question.7

A global object is created:

class Logger {
public:
   Logger() {
       uart_init(115200);
       uart_send("Boot\n");
   }
};

Logger sys_log;  // Global object

int main() {
   uart_send("Main\n");
}

What is the output order?

Need Help? Refer to the Quick Guide below

Select Answer