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++.
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
-
3m 5s
-
9m 35s
-
9m 14s
-
8m 53s
-
10m 16s
-
6m 42s
-
9m 13s
-
8m 55s
-
6m 41s
-
10m 15s
-
4m 34s
-
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 on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.