This is code from an exercise:
#include using namespace std; int main() { int n = 13; int* ip = new int(n + 3); int* ip2 = ip;
This behaviour is undefined, and so what will happen is implementation and system dependent.