Home / Engineering / Object Oriented Programming (OOP) / Question
M
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;
}
Related MCQs on Object Oriented Programming (OOP)
Q. Which one of the following statements is FALSE?
Q. Which is not a product metric?
Q. Engineering economics is needed for many kinds of decision making
Q. The devices connected to USB is assigned a address.
Q. Properties and Indexer are used to access which type of data members?
Q. In 1-to-4 multiplexer, if C1 = 0 & C2 = 1, then the output will be
Q. In ……………, search start at the beginning of the list and check every element in the list.
Discusssion
Login to discuss.