

MCQOPTIONS
Saved Bookmarks
1. |
Which of the following statement is correct about the program given below? #include<iostream.h> class IndiabixSample { private: int AdditionOne(int x, int y = 1) { return x * y; } public: int AdditionTwo(int x, int y = 1) { return x / y; } }; int main() { IndiabixSample objBix; cout<<objBix.AdditionOne(4, 8)<<" "; cout<<objBix.AdditionTwo(8, 8); return 0; } |
A. | The program will print the output 32 0. |
B. | The program will print the output 32 garbage-value. |
C. | The program will print the output 32 1. |
D. | The program will report compile time error. |
Answer» E. | |