C++:
The "pass by reference" is used if we want to change the actual variable's value, for example.
Then what is the use of "pass by const reference"? It says that it doesn't allow us to change the value of variable.
OK. Then why not use "pass by value" in the first place? :/ "Pass By Value" will also not change the value of variable. It will change the value of temporary copy.
So why use CONST Reference? o_O? I hope you are getting me.
Please help me clear my doubt.