Learn About Parameters Passed by Reference in Functions
April 24, 2021
In the functions that we created in previous posts, their parameters have always been passedby value. This means that, when we call a function, what is passed to the function are the values of these parameters on that moment of the call. Variables are copied into the…
Learn to Use Parameters in Functions in C++
April 23, 2021
In the C++ programming language, we can add functions with many parameters, each parameter may have different types. We can add as many parameters as we want by defining its type and its name to be used inside that function separated with ‘,’ coma. We can shape…
Learn About Function Declaration and Definition in C++
April 22, 2021
In C and C++ programming language there are two parts of a function, Declaration, and Definition.
Function Declarationis the combination of the return type of function, function’s name, and parameters in parenthesis.Function Definitionis the body of the function includes statements and other functions.
In general use, they are defined together as below,
myfunction() // this…
Learn About Void and Return Type in Functions in C++
April 21, 2021
We explained how to declare and define simple functions. They had no return, and in a previous post we explained that main function has an integer return that represents our code is successfully done or not. In C++ programming language, we can easily define many functions…
Learn About C++ Functions
April 20, 2021
Functions, also known asProceduresorSub-Programs,Sub-Algorithms,allow to structure programs in segments of code to perform tasks. A Function is a group of statements that has function a name and can be called with parameters to operate…
Learn About the Main Function in C++
April 19, 2021
The Main Functionis the main part of an application coded in C++, it is the designated entry point to a program that is executed in an operating system (on Windows, iOS, Mac-OS, Android, Linux etc.). Every C++ application program has a main function which starts all application statements, and functions. We can create C++ files without the main function and we can use them as a library…
Learn C++ With Modern C++ Safety and Security At 20 by Matthew Butler (CPPCon 2020) Video
April 18, 2021
With the features and language improvements aim to be more comprehensive than even C++11, the C++20 standard is now complete. Engineers employed in safety critical systems, protection or even applications that are exploited by customers every day have special language needs.
Discover Function Overloading in C++
April 17, 2021
Do you want to learn how to overload a function ? What is Function Overloading ? What does overloaded function means ? How we can use Function Overloading in C++ ? How we can use multiple parameter types in our functions ? Here we go,Function Overloading is used to operate…
One of the many powerful improvements of C++11 is Move Semantics. It addresses a variety of programming problems that have been vexed by C++ developers for years. However, moving semantics can be easily misused, and the nuances are often difficult to get correct. This presentation will benefit both those who are still learning how to write a strong robust C++ code and those who already know all…