Which of the following statement is correct about the program given below? #include<iostream.h>
class CuriousTab
{
int *p;
public:
CuriousTab(int xx, char ch)
{
p = new int();
*p = xx + int(ch);
cout<< *p;
}
~CuriousTab()
{
delete p;
}
};
int main()
{
CuriousTab objCuriousTab(10, 'B');
return 0;
}
Correct Answer: The program will print the output 76.
Discussion & Comments