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 courseoutline the features of functions in C++create functions and contrast declarations and definitionsrecognize basic pass-by-value data typesrecall that strings are passed by valuerecall that pointers can be passed by value
-
recall how to use pass-by-value with pointersuse the pass-by-reference constructrecall how references are passed by referencepass in references to vectorspass in references and perform implicit type conversionsummarize the key concepts covered in this course
IN THIS COURSE
-
1.Course Overview3m 5sUP NEXT
-
2.Introducing C++ Functions9m 35s
-
3.Declaring and Defining Functions9m 14s
-
4.Exploring Pass-by-value Data Types8m 53s
-
5.Understanding That Strings Are Passed by Value10m 16s
-
6.Exploring Pointers Pass-by-value Semantics6m 42s
-
7.Understanding How Pointers Are Passed by Value9m 13s
-
8.Understanding Pass-by-reference8m 55s
-
9.Exploring Pass-by-reference6m 41s
-
10.Passing Vectors and Strings Using References10m 15s
-
11.Passing in Integers as References4m 34s
-
12.Course Summary4m 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.