Constructors and Destructors

Q1: What will be the output of the following program?
#include<iostream.h> 
class AptitudeCrack
{
    int x; 
    public:
    AptitudeCrack(int xx, float yy)
    {
        cout<< char(yy);
    } 
}; 
int main()
{
    AptitudeCrack *p = new AptitudeCrack(35, 99.50f);
    return 0; 
}

A 99

B ASCII value of 99

C Garbage value

D 99.50

ANS:A - 99

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.