3 ms·
Given that these are separate sections in the C spec, would &12[5] == 17 (ignoring OS memory protection)?
by Someone 15y ago
Given that these are separate sections in the C spec, would
&12[5] == 17
(ignoring OS memory protection)?
- biot 15y agoThe constraints section of 6.5.2.1 requires that one expression be a pointer. If you cast one of those numbers to a byte pointer with its address at the numerical location in memory, I don't see why it wouldn't result in a pointer to memory location 0x00000017. Give it a shot!