0
The effect of a default argument can be alternatively achieved by overloading. How?
Please explain it with an example.
1 Respuesta
+ 3
void f(int n, char c) {
//whatever
}
void f(int n) {
f(n, 'x'); // x being default
}
Please explain it with an example.