What happens when delete is used for a NULL pointer? int *ptr = NULL; delete ptr;

Question:
 What happens when delete is used for a NULL pointer?
int *ptr = NULL;
delete ptr;

1.Compiler Error

2.Run-time Crash

3. No Error

4.None

Posted Date:-2022-07-04 04:08:13


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!