1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #include <boost/utility/addressof.hpp> #include <cstdio> using namespace std; int main() { int x = 0; int * px = boost::addressof(x); printf("%p\n", px); int ** ppx = boost::addressof(px); printf("%p\n", ppx); } |
I2luY2x1ZGUgPGJvb3N0L3V0aWxpdHkvYWRkcmVzc29mLmhwcD4KCiNpbmNsdWRlIDxjc3RkaW8+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CiAgICBpbnQgeCA9IDA7CiAgICBpbnQgKiBweCA9IGJvb3N0OjphZGRyZXNzb2YoeCk7CiAgICBwcmludGYoIiVwXG4iLCBweCk7CgogICAgaW50ICoqIHBweCA9IGJvb3N0OjphZGRyZXNzb2YocHgpOwogICAgcHJpbnRmKCIlcFxuIiwgcHB4KTsKfQo=
-
upload with new input
-
result: Success time: 0s memory: 2724 kB returned value: 0
0xbf981ab4 0xbf981ab0


