Ask a Teacher



What is a parameter?

Parameters are values that are passed into a function or C++ template. For example, a function to add three numbers might have three parameters.
The parameters that are passed into a template definition define the class that the template class uses. Eg a vector of payroll records.

Functions that can take a varying number of parameters are called variadic.



comments powered by Disqus