Functions in C++: Using Functions & Parameter Passing

placeholder

Functions remain an important construct for code modularization and reuse in C++ even though C++ is an object-oriented language. Learn how to use functions in C++ focusing on free functions and examine the distinction between declaring a function where you specify the function’s signature return type and name; defining a function where you create the body of a function; and invoking the function. Then explore the semantics of passing parameters by value to C++ functions. Finally compare pass-by-reference semantics to pass-by-value semantics and investigate the differences. Upon completion of this course you will be able to use pass-by-value and pass-by-reference semantics in the context of function invocation in C++.