Ratings & reviews

3.01 rating

Calin Z.

20 days ago

A lot of things are unclear. There are missing examples on how or why you use some of the syntaxes presented. ... Show more


Complete all chapters to get certificate


Intro to C++ Functions


Now it's time to dive into the world of C++ functions! Now you will learn some general concepts about functions in C++, including their definition, declaration, and usage. Discover how to declare and call functions, and gain insights into variable scopes, both local and global, for effective program design.

What is Function in C++?

How to Create Function in C++?

Challenge: Function Creation

Calling a Function

Variable Scopes

Challenge: Understanding Variable Scopes

Function Arguments Specification


We will delve into specifying and using function arguments in C++ programming. Explore concepts like pass-by-value and pass-by-reference, and understand the role of default arguments; learn how to pass arrays as function arguments and become familiar with constant function arguments.

Positional and Default Arguments

Passing Arguments by Value/Pointer/Reference

Challenge: Banking Transaction Function

Constant Function Arguments

Passing Static Array as an Argument of the Function

Challenge: Using Static Array as an Argument

Passing Dynamic Array as an Argument of the Function

Challenge: Why Do We Need Array Size as an Argument?

Challenge: Passing Custom Structures as Arguments

Function Return Value Specification


Now we will learn about how to specify the return value of a function in C++. This includes understanding the data types that functions can return, such as integers, floating-point numbers, and arrays. We will also consider function that have no return value.

Returning Values With Simple Data Types

Returning Arrays from the Function

Challenge: Random Numbers Generator

Return Custom Structures (Classes)

Void Return Type

Some Advanced Topics


Now let's delve into some additional topic in C++! We will explore function overloading, mastering the art of creating multiple functions with the same name but different parameter lists for enhanced code flexibility. Recursion is introduced, teaching the principles of recursive functions, allowing students to solve complex problems efficiently. Additionally, the section covers lambda functions, providing insights into creating concise anonymous functions/

Function Overloading

Challenge: Function Overloading


Lambda Functions