0

How do Optional Arguments Work?

https://code.sololearn.com/859/#cs

2nd Jan 2018, 2:25 AM
Daniel Sá
Daniel Sá - avatar
3 odpowiedzi
+ 9
You provide a default value to one of the function parameters, and if you decide not to pass that parameter, the default value is used. The ability for you to not pass the parameter is what makes it an optional argument.
2nd Jan 2018, 2:27 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
@Daniel $á, your code link is erroneous, I try to open it, but in Code Playground it doesn't show in which language the code was written, save the code as a new C# code, then it will be okay.
2nd Jan 2018, 5:23 AM
Ipang
0
I still dont understand how did i get 8 out of that... (maybe because Im tired?) xD i dont know
2nd Jan 2018, 2:48 AM
Daniel Sá
Daniel Sá - avatar