fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. int i;
  5. std::cout << & i << '\n';
  6.  
  7. std::cout << [=]() mutable -> int * {
  8. return & i;
  9. } () << '\n';
  10. }
  11.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
0xbff4b7e8
0xbff4b7ec