Creating functions.

Creating functions.

is about how to create functions, first of all is to know what are those things?

Functions allow to structure programs in segments of code to perform individual tasks.

In C++, a function is a group of statements that is given a name, and which can be called from some point of the program. The most common syntax to define a function is:

type name ( parameter1, parameter2, ...) { statements }

 

And to show you how it works, here it is a code where I use functions and I call functions but I’ll explain that in mastery11.

Keep coding! 😀

CC BY 4.0 Creating functions. by Gonzalo Mata is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.