Home / C++ Programming / Functions - C++ :: Discussion

Discussion :: Functions - C++

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

      #include
      class Freshergate
      {    
          int K;    
          public:    
          void GateFunction(float, int , char);     
          void GateFunction(float, char, char);        
     };
     int main()
     { 
        FreshergatebjIB;     
        objIB.GateFunction(15.09, 'A', char('A' + 'A'));   
        return 0; 
     }
     void Freshergate:Gatefunction(float, char y, char z)
     {    
         K = int(z);   
         K = int(y);   
         K = y + z;     
         cout"K = " 

     

     

  2. A.

    The program will print the output M = 130.

    B.

    The program will print the output M = 195.

    C.

    The program will print the output M = -21.

    D.

    The program will print the output M = -61.

    E.

    The program will report compile time error.

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    No answer description available for this question.


Be The First To Comment