S
Q. Which of the following is the correct way to define a function with a variable number of arguments using initializer_list in C++?
- Correct Answer - Option(A)
- Views: 59
- Filed under category C++
S
The correct way to define a function with a variable number of arguments using initializer_list is 'void myFunction(std::initializer_list<int> args) { }'.
You must be Logged in to update hint/solution
Discusssion
Login to discuss.