Request New Subject
Home
Computer Science Engineering (CSE)
Object Oriented Programming (OOP)
Q. Is it fine to call delete twice for a pointer?#include<iostream> using namespace std;int main(){int *ptr = new int; delete ptr;delete ptr; return 0;} (Solved)
1. yes
2. no
b. no
Related Topics
→ Computer Architecture and Organization
→ Microprocessor and Interfacing Technique
→ Computer Networks
→ Data Structure and Algorithms (DSA)
→ Operating System (OS)
→ Artificial Intelligence and Robotics (AIR)
→ Software Project Management (SPM)
→ Computer Fundamentals
→ High Performance Computing (HPC)
→ Data Communication and Computer Network
Subscribe Now
Get All Updates & News
Subscribe