0

there is only default value for last parameter of all arguments?does the previous parameter have any default value?

15th Feb 2017, 1:43 AM
Naethra.K
1 Respuesta
+ 4
By default arguments haven't default values. You can put default values to some arguments of a function: someFunction (int a, int b, int c=7){..} Or to all arguments: someFunction (int a=1, int b=5, int c=7){..} Alway starting with the last ones.
15th Feb 2017, 3:02 AM
Salva Pérez
Salva Pérez - avatar