What happens when delete is used for a NULL pointer? int *ptr = NULL; delete ptr;
A) compile time error
B) run time error
C) no effect
Correct Answer:
Verified
Q13: class Test { int x;};int main(){Test t;
Q14: Which of the following is true?
A)all objects
Q15: Which of the following is true about
Q16: Which of the following is true about
Q17: Predict the output?#include <iostream> using namespace std;class
Q19: Is it fine to call delete twice
Q20: Which of the followings is/are automatically added
Q21: Output of following program?#include<iostream> using namespace std;
Q22: #include<iostream> using namespace std; class Point {public:Point()
Q23: #include<iostream> using namespace std;class X{public:int x;};int main(){X
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents