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.

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

Teach students that running tests cannot prove that a code works. It can, however, prove that code is not working.
Have students design a game of Breakout in Java to practice using conditionals and nested for loops.
Misconception: If you consistently use the same variable names during class in lectures and examples, students may incorrectly assume objects in Java can only have those names.

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

Privacy Policy