Sail E0 Webinar
Question


What is the output of this program?


1.
#include
2.
#include
3.
using namespace std;
4.
struct A
5.
{
6.
virtual ~A() { };
7.
void operator delete(void* p)
8.
{
9.
cout
Options:
A .  A::operator delete
B .  B::operator delete
C .  Both a & b
D .  None of the mentioned
Answer: Option B

In this program, We are passing the value to the B, So we are printing B::operator delete.
Output:
$ g++ free.cpp
$ a.out
B::operator delete



Was this answer helpful ?

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers