Home / C++ Programming / References :: Discussion

Discussion :: References

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

    #include 
     class Gate
     {   
          int x, y;  
          public:   
          Gate(int x, int y)     
          {         
              this->x = x;     
              this->y = y;     
          }
          void Display()    
         {         
             cout" " int main() 
      {
          int x = 50;  
          int &y = x ;   
          Bix b(y, x);     
          return 0;
      }
    

  2. A.

    The program will print the output 50 50.

    B.

    The program will print the two garbage values.

    C.

    It will result in a compile time error.

    D.

    The program will print nothing.

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    No answer description available for this question.


Be The First To Comment