0
Default Arguments
"any defaults should be on the right side of any non-default arguments; otherwise, things will not work as expected"..... What does this statement mean?
1 Antwort
+ 1
1. func (int x, int y=3)
2. func (int x=3, int y)
means it should be like 1. you see default argument is right side of non-default argument x.
and 2. will not work as expected.
this is what I means.
(x, y=4, z=7) fine
(x=3, y, z=5) doesn't work properly
hope now you understand what does this line say