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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!