bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/C++

C++

C++ Functions

C++ Functions focused on C++ Functions and related concepts.

Lesson 1

C++ Functions

A function is a block of code which only runs when it is called.

Read lesson →Loading…
Lesson 2

C++ Function Parameters

Information can be passed to functions as a parameter. Parameters act as variables inside the function.

Read lesson →Loading…
Lesson 3

C++ Default Parameters

You can also use a default parameter value, by using the equals sign ( = ).

Read lesson →Loading…
Lesson 4

C++ Multiple Parameters

Inside the function, you can add as many parameters as you want:

Read lesson →Loading…
Lesson 5

C++ The Return Keyword

The void keyword, used in the previous examples, indicates that the function should not return a value. If you want the function to return a value, you can use a data type (such as int , string , etc…

Read lesson →Loading…
Lesson 6

C++ Pass Array to a Function

You can also pass arrays to a function:

Read lesson →Loading…
Lesson 7

C++ Pass Structures to a Function

You can also pass a structure to a function.

Read lesson →Loading…
Lesson 8

C++ Function Overloading

Function overloading allows multiple functions to have the same name, as long as their parameters are different in type or number :

Read lesson →Loading…
Lesson 9

C++ Variable Scope

In C++, variables are only accessible inside the region they are created. This is called scope .

Read lesson →Loading…
Lesson 10

C++ Recursion

Recursion is the technique of making a function call itself.

Read lesson →Loading…
Lesson 11

C++ Lambda Functions

A lambda function is a small, anonymous function you can write directly in your code. It's useful when you need a quick function without naming it or declaring it separately.

Read lesson →Loading…