Home / C++ Programming / Constructors and Destructors :: Discussion

Discussion :: Constructors and Destructors

  1. p>What will be the output of the following program?

    #include<iostream.h> 
    class FresherGate
    {
        int x; 
        public:
        FresherGate(int xx, float yy)
        {
            cout<< char(yy);
        } 
    }; 
    int main()
    {
        FresherGate *p = new FresherGate(35, 99.50f);
        return 0; 
    }

  2. A.

    99

    B.

    ASCII value of 99

    C.

    Garbage value

    D.

    99.50

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment