menu-iconExamlexExamLexServices

Discover

Ask a Question
  1. All Topics
  2. Topic
    Computing
  3. Study Set
    Object Oriented Programming (OOP)
  4. Exam
    Exam 4: C++ Programming and Concepts: Inheritance, Data Types, Objects, and Output Prediction
  5. Question
    What Happens When Delete Is Used for a NULL Pointer
Solved

What Happens When Delete Is Used for a NULL Pointer

Question 14

Question 14

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Q9: The main intention of using inheritance is

Q10: Which of the followings is/are automatically added

Q11: Which of the following data type does

Q12: Which of the following statements is correct

Q13: Which of the following interface determines how

Q15: Predict the output of following C++ program#include<iostream>

Q16: Which feature of C++ contain the concept

Q17: What is the difference between struct and

Q18: Which of the following is true about

Q19: Output of following program?#include<iostream> using namespace std;

Examlex

ExamLex

About UsContact UsPerks CenterHomeschoolingTest Prep

Work With Us

Campus RepresentativeInfluencers

Links

FaqPricingChrome Extension

Download The App

Get App StoreGet Google Play

Policies

Privacy PolicyTerms of ServiceHonor CodeCommunity Guidelines

Scan To Download

qr-code

Copyright © (2025) ExamLex LLC.

Privacy PolicyTerms Of ServiceHonor CodeCommunity Guidelines