Question.6
A firmware engineer compares the sizes:
printf("%zu %zu", sizeof(std::unique_ptr<Sensor>), sizeof(std::shared_ptr<Sensor>));
On a 32-bit ARM, what is the likely output?
Select Answer
4 4
4 8 -- shared_ptr stores the raw pointer plus a pointer to the control block (reference counter)
8 8
4 12