C++C++11C++14C++17Introduction to C++Learn C++

Learn to Use Function Templates in C++

A Template is a simple and a very powerful statement in C++. A Template Function may have multiple template parameter types, and the function can still use regular non-templated types. In a previous post, about Function Overloading, we had two add() functions working with integer and float numbers, in that example we can say add() function is overloaded with int and float parameter types, and…
Read more
C++Introduction to C++Learn C++

Learn About Parameters Passed by Reference in Functions

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 variables represented by the function parameters. Let’s remember an example, #include <iostream> int add (int…
Read more
C++Introduction to C++Learn C++

Learn About Void and Return Type in Functions in C++

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 and some functions may have return values some may not. We can return single variables like integer numbers (int), floating…
Read more
C++Learn C++Videos

Learn C++ With Modern C++ Safety and Security At 20 by Matthew Butler (CPPCon 2020) Video

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. In this video, you will be looking into the latest features and updates to the specification and see how they affect code…
Read more