Question.1
A developer constructs a Sensor in a static buffer:
#include <new> static alignas(Sensor) uint8_t buf[sizeof(Sensor)]; Sensor* s = new (buf) Sensor(10);
Where does the Sensor object live?
Select Answer
On the heap -- new always uses the heap
new
In the static buffer buf -- placement new constructs at the provided address without heap allocation
buf
On the stack
In Flash