+ 1
Why the second output is 66??
I just understand the first one. https://code.sololearn.com/cfRnbPoTCiE7/?ref=app
4 Respuestas
+ 4
When there is no second parameter, the default parameter is used. In this case, the default value b takes is 42, so the output will be 24 + 42 = 66
+ 3
Hyst1k no problem
+ 2
because of (int b=42) b gets a default value if not provided.
without that the code wouldn't work if only a single argument is given.
+ 1
THANK YOU