Qt Code:
  1. #include <iostream>
  2.  
  3. ...
  4. int someVariable;
  5. std::cout << "address of some variable: " << &someVariable;
To copy to clipboard, switch view to plain text mode