Hello, I have a question why the memory after the delete operator, the memory remains involved, or something I do not understand:
#include <iostream> using namespace std; int main(){ int *p=new int[10]; for(int i=0;i<10;i++){ p[i]=i; } delete [] p;//удаление массива cout<<p[2];//и после удаления почему то благополучно выводится значение }