+ 2

Default arguments

In default arguments,already a value has been assigned to function parameter.In case if we call that function with another value, what happens to its default assigned value?, can anyone clarify please?

20th Dec 2016, 2:47 PM
Sanjaydeep G
Sanjaydeep G - avatar
2 Respostas
+ 6
the default values takes place when you don't use your own parammeters. If you use your own , then the default ones are not used.
20th Dec 2016, 2:58 PM
Nahuel
Nahuel - avatar
0
thank you Mr.Nahuel!
20th Dec 2016, 3:06 PM
Sanjaydeep G
Sanjaydeep G - avatar