Flashcard Details

CPlusPlus

What are the three ways to pass arguments to a function in C++?

By Value: copies the argument; changes don’t affect the original. By Reference: uses a reference; changes affect the original. By Pointer: passes a memory address; changes affect the original and allows null.

2

https://www.geeksforgeeks.org/parameter-passing-techniques-in-cpp/

1