Код: Выделить всё
using namespace std;
#include
#include
int main()
{
int* x = new int;
*x = 2;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/20725030/address-held-by-pointer-changes-after-pointer-is-deleted[/url]Код: Выделить всё
using namespace std;
#include
#include
int main()
{
int* x = new int;
*x = 2;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/20725030/address-held-by-pointer-changes-after-pointer-is-deleted[/url]