82. Smart Pointers-I

Question.3

A developer transfers UART driver ownership:

auto uart = std::make_unique<UART>(9600);
auto logger = std::move(uart);

uart->send(0x55);  // Access after move

What happens at the uart->send line?

Need Help? Refer to the Quick Guide below

Select Answer