RosettaCodeData/Task/Address-of-a-variable/C/address-of-a-variable-4.c
2018-06-22 20:57:24 +00:00

3 lines
99 B
C

#include <new>
struct S { int i = 0; S() {} };
auto& s = *new (reinterpret_cast<void*>(0xa100)) S;