fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5. int a = 234;
  6. int* p = 0;
  7. p = new (p) int(a);
  8. (*p)++;
  9.  
  10. cout << *p << '\n'; //235
  11. cout << a << '\n'; //234
  12. }
  13.  
Runtime error #stdin #stdout 0s 4696KB
stdin
Standard input is empty
stdout
Standard output is empty