Stack — automatic, fast. Heap — manual, slow.
1void f() {2 int x = 10; // Stack3 int* p = new int; // Heap4}