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

Discussion :: Functions - C++

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

      #include 
      struct MyStructure
      {   
          class MyClass   
          {      
             public:     
            void Display(int x, float y = 97.50, char ch = 'a')    
            {         
               cout" " int main()
     {   
         Struc.Cls.Display(12, 'b');  
         return 0; 
     }
    

  2. A.

    The program will print the output 12 97.50 b.

    B.

    The program will print the output 12 97.50 a.

    C.

    The program will print the output 12 98 a.

    D.

    The program will print the output 12 Garbage b.

    E.

    The program will print the output 12 Garbage a.

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment