Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • About
  • Cards
  • 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 have trouble distinguishing between instance variables and parameters in Java.
Misconception: Students believe that in a primitive assignment, x = y could be the equivalent of y = x; they think that the computer science “=” sign is the same as the mathematical “=” sign.
Have students pay close attention to loop bounds when tracing through code to help them identify and avoid off-by-one errors caused this way.
  • CSTT Facebook
  • CSTT Twitter

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

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College