fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct test{int a;};
  5.  
  6. int main() {
  7. // your code goes here
  8. test* ptr;
  9. ptr = (test*)20;
  10.  
  11. long information = reinterpret_cast<long>(ptr);
  12. std::cout<<information<<std::endl;
  13. return 0;
  14. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
20