35. Placement New

Question.7

A developer constructs a UART driver directly at a hardware register address:

UART_Driver* uart1 =
   new (reinterpret_cast<void*>(0x40005000))
       UART_Driver();

Is this valid?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!