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 The RAM (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 use ROM (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 have a memory…
Read more
C++Introduction to C++Learn C++

Discover Goto and Labels in C++

The goto statement is used to jump to a label that provides an unconditional jump from the goto to a labeled statement in the same function. We can also do the same loops as the same in for() while() loops by using goto statement. Instead of goto we mostly use for()…
C++Introduction to C++Learn C++

Learn To Use Arithmetics On Pointers In C++

In a previous post, we learned that pointers are variables to point address which is also an integer value. That means we can do arithmetic operations on a pointer variable. But do not forget that we operate on the addresses in our RAMs, so we should be careful and we should know the range well. Simply, we can use ++, –, +, and – arithmetic operators on pointers: In a 32bit application…
Read more