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
-
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.