Why use references quite than pointers for arguments

Why use references quite than pointers within the public API, mainly for arguments that are modified?

E

Expert

Verified

The C++ gives the most precise statement of the principles as follows:

No pointers within the public API, except while returning a pointer that might be null. The above reference also explains the problem of wrong attitudes brought over by C.

   Related Questions in Database Management System

©TutorsGlobe All rights reserved 2022-2023.