int main() { Stack: int i = 20; int j = 100; int* k = &j; Output: 300 int* m = k; *m = 50; int* p = &i; int** n = &k; **n = 300; *n = p; cout << j; }
int main() { int i = 20; int j = 100; int* k = &j; int* m = k; *m = 50; int* p = &i; int** n = &k; **n = 300; *n = p; cout << j; } Stack: Output: 300
PointerWSKey.docx