Functions in C++: Using Functions & Parameter Passing

C++    |    Intermediate
  • 12 videos | 1h 31m 37s
  • Includes Assessment
  • Earns a Badge
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++.


  • Discover the key concepts covered in this course
    Outline the features of functions in c++
    Create functions and contrast declarations and definitions
    Recognize basic pass-by-value data types
    Recall that strings are passed by value
    Recall that pointers can be passed by value
  • Recall how to use pass-by-value with pointers
    Use the pass-by-reference construct
    Recall how references are passed by reference
    Pass in references to vectors
    Pass in references and perform implicit type conversion
    Summarize the key concepts covered in this course


  • 3m 5s
  • 9m 35s
  • Locked
    3.  Declaring and Defining Functions
    9m 14s
  • Locked
    4.  Exploring Pass-by-value Data Types
    8m 53s
  • Locked
    5.  Understanding That Strings Are Passed by Value
    10m 16s
  • Locked
    6.  Exploring Pointers Pass-by-value Semantics
    6m 42s
  • Locked
    7.  Understanding How Pointers Are Passed by Value
    9m 13s
  • Locked
    8.  Understanding Pass-by-reference
    8m 55s
  • Locked
    9.  Exploring Pass-by-reference
    6m 41s
  • Locked
    10.  Passing Vectors and Strings Using References
    10m 15s
  • Locked
    11.  Passing in Integers as References
    4m 34s
  • Locked
    12.  Course Summary
    4m 14s


Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.