在下面C++代码中,由于删除了变量ptr,因此ptr所对应的数据也随之删除,故执行下述代码时,将报

错。

 int* ptr = new int(10); cout << *ptr << endl; delete ptr; cout << ptr << endl;
填写答案