Functions - Programming

Q1:

What will be the output of the following program?
#include<iostream.h> 
class AptitudeCrack
{
    public: 
    int x, y;
    AptitudeCrack(int xx = 10, int yy = 20)
    {
        x = xx;
        y = yy; 
    }
    void Exchange(int *, int *);
};
int main()
{
    AptitudeCrack objA(30, 40); 
    AptitudeCrack objB(50); 
    objA.Exchange(&objA.x, &objB.y); 
    cout<< objA.x << ' ' << objB.y << endl; 
    return 0;
}
void AptitudeCrack::Exchange(int *x, int *y)
{
    int t;
    t  = *x;
    *x = *y;
    *y = t ; 
}

A 20 10

B 30 20

C 20 30

D 30 40

E 50 30

ANS:C - 20 30

No answer description is available. Let's discuss.