70. static_assert

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?

Need Help? Refer to the Quick Guide below

Select Answer