Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Emphasize that it is not necessary to add the reference operator, &, in C++ when passing an argument to a function that takes in a reference.

Share Emphasize that it is not necessary to add the reference operator, &, in C++ when passing an argument to a function that takes in a reference. with FacebookShare Emphasize that it is not necessary to add the reference operator, &, in C++ when passing an argument to a function that takes in a reference. with Twitter

More about this tip

Tags

  • Content Misconceptions
  • C++
  • Programming Concepts
External Source

Interview with Nick Melnyk

Other Tips By
Other Tips By Nick Melnyk

Similar tips

Misconception: students forget about language-specific or paradigm-specific material (e.g., new/delete or types) when they switch between languages that don’t use the same concepts.
Misconception: With conditionals, students may try to compare the memory address of a function to a number, like x < foo, when they intended to compare x with the return value of foo.
Misconception: Students think that “return x*x” changes the value of x to be x*x.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy