A Admin • 833K Points Coach Q. Which of the following is the correct way to define a function with default arguments in C++? (A) void myFunction(int x = 10, int y = 20) { } (B) void myFunction(int x, int y = 20) { } (C) Both A and B (D) None of the above Correct Answer - Option(C) Views: 20 Filed under category C++ Hashtags: Share Manage Tags
Discusssion
Login to discuss.