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

Focus on simple examples in a breadth course about systems to avoid confusing students. Save depth for upper level courses.
Misconception: Students think that it’s possible to write methods that add attributes to a Java class.
Track the variable values of a recursive function using multiple pieces of paper to form a “stack” so that students can visualize what happens when a method calls itself and how each method call has its own unique variable values.

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

Privacy Policy