Search⌘ K
AI Features

Calling Functions

Understand how to call functions in C++. Learn to pass input values as arguments, capture return values, and manage program control flow between functions. This lesson covers calling void and value-returning functions and using function calls within expressions.

We'll cover the following...

Calling refers to how a function is used in a code, i.e., how a function is invoked. To call a function, you write its name followed by the comma-separated list of actual input values in parentheses.

Code example

...