Test4 C++
Test4 C++
2. What does the “strict aliasing rule” enable the compiler to assume?
a) That pointers of different types will never point to the same memory location (unless
explicitly allowed), enabling better optimizations
b) That casts between unrelated pointer types always perform a byte-wise copy
c) That all objects must be aligned to their natural boundaries to avoid misaligned accesses
d) That pointer arithmetic wraps around at the end of an array