1.

Is it fine to call delete twice for a pointer? #include using namespace std; int main() { int *ptr = new int; delete ptr; delete ptr; return 0; }

A. yes
B. no
Answer» C.


Discussion

No Comment Found

Related MCQs