✪ Choose the correct option.
Which of the following statement is correct about the program given below?
#include
class Crackexams {
int x;
float y;
public:
Crackexams(int x) {
x = x;
}
Crackexams(int p = 0, int q = 10) {
x = p += 2;
y = q * 1.0f;
}
void SetValue(int &y, float z) {
x = y;
y = (int)z;
}
void Display(void) {
cout<< x;
}
};
int main() {
int val = 12;
Crackexams objCrackexams(val);
Crackexams objTmp();
objCrackexams.SetValue(val, 3.14f);
objCrackexams.Display();
return 0;
}