3 ms·
Such a program invokes undefined behavior and thus isn't a correct C program.
by mikeash 8y ago
Such a program invokes undefined behavior and thus isn't a correct C program.
- fiddlerwoaroof 8y agoHmm, as far as I can tell, if you cast an appropriately sized unsigned integer to a pointer type and then dereference the pointer, the result is only UB if the integer isn’t the address of an initialized memory location compatible with the target pointer type.