Question: Given a function below: int func (int num1, int num2=0, int num3=0) {return num1+num2+num3;} If we call it using this statement: auto new_value = func

Given a function below: int func (int num1, int num2=0, int num3=0) {return num1+num2+num3;} If we call it using this statement: auto new_value = func (1, , 2); What will happen ? Please explain, and what is the right way to call a function like this with partial passing argument
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
