Question.7
A class stores a constant lookup table:
class CRC { public: static constexpr uint8_t table[4] = {0x00, 0x5E, 0xBC, 0xE2}; };
Where is the table stored in the firmware binary?
Select Answer
RAM (.data) -- copied from Flash at startup
.rodata (Flash/ROM) -- constexpr static is a compile-time constant; it stays in Flash and uses zero RAM
Stack -- created when the class is used
Heap -- allocated at runtime