Discussion :: Functions - C++
-
Which of the following statement is correct about the program given below?
#include static int Result; class Fresher { public: void Change(int x = 10, int y = 20, int z = 30) { coutvoid Display(int x = 40, float y = 50.00) { Result = x % x; coutclass Gate { int x, y; public: void Change(int x, int y = 50) { coutclass Freshergate: public Fresher, public Gate { public: void Display(int x = 10, int xx = 100, int xxx = 1000) { Result = x + xx % x * x; coutint main() { Fresher objGate; objGateFresher::Display(10, 20.00); return 0; }
|
A.
The program will print the output 0. |
|
B.
The program will print the output 10. |
|
C.
The program will print the output 30. |
|
D.
The program will print the output 40. |
|
E.
The program will report compile time error. |
Answer : Option A
Explanation :
No answer description available for this question.
Be The First To Comment

Whatsapp
Facebook