Home / C++ Programming / References :: Discussion

Discussion :: References

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

      #include
      class GateTest
      {    
          public:   
          GateTest(int &x, int &y) 
          {        
                x++;    
                y++;    
      }  
    };
     int main()
     {     
          int a = 10, b = 20; 
          GateTest objBT(a, b);    
          cout" "
          return 0; 
      }
    
    

  2. A.

    10 20

    B.

    11 21

    C.

    Garbage Garbage

    D.

    It will result in a compile time error.

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment