Just want to a great god asked 20 is how to calculate the result of that answer? And return back to is the X value in d2? Or the other? thank you
CodePudding user response:
Int the add (int x, int y=10){
Return x + y;
}
Parameter has a default value of 10 y,
Add (10) is equivalent to the add (10, 10)
Naturally output 20
CodePudding user response:
The add function return x + y, return is x, y andCodePudding user response:
The building Lord based to learn c + +,Google "c + + default parameters"
CodePudding user response:
After I started self-taught, so please the great god more business!