I sometimes see statements that on some platforms the following C or C++ code:
int* ptr; *ptr = 0;
can result in writing to a hardware input-ou
It is mostly used when writing drivers, since most peripheral devices communicate with the main CPU through memory mapped registers.