C++ · Pointers and references

References and pointers compared

References and pointers both reach another variable, and knowing where they differ tells you which one a function should take.