Objects and Classes - Programming

Q1:

Which of the following statement is correct about the program given below?
#include<iostream.h> 
class AptitudeCrack
{
    int x; 
    float y; 
    public:
    void Function()
    {
        x = 4; 
        y = 2.50; delete this;
    }
    void Display()
    {
        cout<< x << ' ' << y;
    } 
}; 
int main()
{
    AptitudeCrack *pAptitude = new AptitudeCrack();
    pAptitude->Function(); 
    pAptitude->Function(); 
    pAptitude->Display(); 
    return 0; 
}

A The program will print the output 4 2.5.

B The program will print the output 4.

C The program will report runtime error.

D The program will report compile time error.

ANS:A - The program will print the output 4 2.5.

No answer description is available. Let's discuss.