Question.2
A developer ensures the code is compiled for a 32-bit platform:
static_assert(sizeof(void*) == 4, "This code requires 32-bit architecture");
What happens when compiled on a 64-bit desktop for testing?
Select Answer
Compiles fine -- sizeof(void*) is always 4
Compilation error with the message -- sizeof(void*) is 8 on 64-bit, so the assertion fails
Runtime crash when the code runs on 64-bit
Warning only