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

Discussion :: Constructors and Destructors

  1. Which of the following statement is correct about the program given below?

     #include 
      class Freshergate
      {   
         int x;    
         public:   
         FresherGate(short ss)  
         {       
            cout"Short" int xx) 
         {     
             cout"Int" (char ch)    
         {        
             cout"Char" cout"Final";  
         } 
     }; 
     int main() 
     {    
         FresherGate *ptr = new FresherGate('B');    
         return 0;
     }
    

  2. A.

    The program will print the output Short .

    B.

    The program will print the output Int .

    C.

    The program will print the output Char .

    D.

    The program will print the output Final .

    E.

    None of the above

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment