Difference between const reference and normal parameter
The difference is more prominent when you are passing a big struct/class. when you use use ‘normal’ parameter, you pass the parameter by value and hence creating a copy of the parameter you pass. if you are using const reference, you pass it by reference and the original data is not copied. in both cases, … Read more