b should work fine!
(address=XXX, pointsTo=XXX where XXX are memory addresses)
int* a = new int;
int* a = new int;
To copy to clipboard, switch view to plain text mode
a: address=1 pointsTo=10
int** b = &a;
int** b = &a;
To copy to clipboard, switch view to plain text mode
b: address=2 pointsTo=1 (-> which points to 10)
delete a;
delete a;
To copy to clipboard, switch view to plain text mode
a: address=1 pointsTo=NULL
(b: address=2 pointsTo=1 (-> which points to NULL))
a = new int;
a = new int;
To copy to clipboard, switch view to plain text mode
a: address=1 pointsTo=11
b: address=2 pointsTo=1 (-> which points to 11)
Bookmarks