Functions in C++: Using Functions & Parameter Passing

C++ 20    |    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++.

WHAT YOU WILL LEARN

  • 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

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    3m 5s
    UP NEXT
  • Playable
    2. 
    Introducing C++ Functions
    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

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

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

Digital badges are yours to keep, forever.