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<< x << " " << y << " " << ch; } }Cls; }Struc; int main() { Struc.Cls.Display(12, 'b'); return 0; }
Correct Answer: The program will print the output 12 98 a.
Discussion & Comments