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

Misconception: students develop the habit of putting the type in front of variables; they don’t realize that this creates a new variable resulting in lots of variables with the same name.
Misconception: Students may not realize that websites need and use servers to store, process, and deliver content to users’ browsers, causing struggles with the distinction between Server side vs. Client side.
Misconception: When a variable is on both sides of an equal sign (i.e., x = x+1), students can get very confused.

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

Privacy Policy