Jun 122012

In C language, everything is pass-by-value and C++ supports that. But C++ also provides provision to pass arguments by reference (by declaring new reference data type).

When should we use pass by reference. Will it have an impact on the performance if I pass by value or it is just another way to return more values from a function? Continue reading »