Discussion :: Functions - C++
-
Which of the following statement is correct about the program given below?
#include class FresherGate { int x; float y; public: void GateFunction(int = 0, float = 0.00f, char = 'A'); void GateFunction(float, int = 10.00, char = 'Z'); void GateFunction(char, char, char); }; int main() { FresherGate objGate objGate.GateFunction(10 * 1.0, int(56.0)); return 0; } void FresherGate::GateFunction(int xx, float yy, char zz) { x = xx + int(yy); cout"x = " void FresherGate::GateFunction(float xx, int yy, char zz) { x = zz + zz; y = xx + yy; cout" x = "void FresherGate::GateFunction(char xx, char yy, char zz) { x = xx + yy + zz; y = float(xx * 2); cout" x = "
|
A.
The program will print the output x = 65. |
|
B.
The program will print the output x = 66. |
|
C.
The program will print the output x = 130. |
|
D.
The program will print the output x = 180. |
|
E.
The program will not compile successfully. |
Answer : Option D
Explanation :
No answer description available for this question.
Be The First To Comment

Whatsapp
Facebook