+ 1
What will happen if combine both default argument and pass by refrence in c++
2 odpowiedzi
+ 2
You cannot reference a value, that would give an error, unless you make it a const reference.
So if for example you write:
int f(const int &n=0) {...}
It works.
+ 2
Any one please answer