Код: Выделить всё
int i[][3] = {
{ 1, 2, 3 },
{ 4, 5, 6 }
};
int* pointy = &i[1][1];
int* copyPointy = pointy;
*pointy = 100;
pointy = &i[0][2];
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/29026058/why-does-updating-a-pointer-not-update-copies-of-that-pointer[/url]
Мобильная версия