Expanding What Your Functions Can Do in C++
Lecture no. 14 from the course: Introduction to C++: Programming Concepts and Applications
Taught by Professor John Keyser | 30 min | Categories: The Great Courses Plus Online Professional Development Courses
A parameter is a piece of data used as input into a function. Discover how to create two functions, each with the same name, but with different numbers of parameters—an approach called overloading. Also look at different ways to “pass” parameters to produce an output, either preserving the parameter’s value (pass by value) or changing it (pass by reference).