Dynamic Example int* func() { return new int(42); } int main() { int* p1 = func(); int* p2 = func(); cout << p1 << " : " << *p1 << endl; cout << p2 << " : " << *p2 << endl; delete p1; delete p2; }