InterviewSolution
Saved Bookmarks
| 1. |
What function will be called with the independent syntax “test(5,6,7);”?(a) void test(int x, int y)(b) void test(int x=0, int y, int z)(c) int test(int x=0, y=0, z=0)(d) void test(int x, int y, int z=0)This question was posed to me in an internship interview.Asked question is from Default Arguments topic in chapter Default Arguments vs Overloading, Upcasting and Downcasting of Object Oriented Programming |
|
Answer» The CORRECT choice is (d) void test(int x, int y, int z=0) |
|