Home » C++ Programming » Functions

Which of the following statement is correct about the program given below? #include void Tester(int xx, int yy = 5); class CuriousTab { int x; int y; public: void Tester(int xx, int yy = 5) { x = xx; y = yy; cout<< ++x % --y; } }; int main() { CuriousTab objCuriousTab; objCuriousTab.Tester(5, 5); return 0; }

Correct Answer: The program will print the output 2.

← Previous Question Next Question→

More Questions from Functions

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion