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
C++Introduction to C++Learn C++

Learn to Use Pointers and Memory Address of a Variable in C++

1. Memory Address of a Variable TheRAM(Random Access Memory) is the memory of a computer that can be read and changed in any order, typically used to store working data and machine codes. In some operations, we useROM(Read Only Memory), In our applications, we have a lot of variables and every variable stored in the RAM and it takes space in the memory, These variables…
Read more