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

Learn To Define And Use Arrays In C++

Arrays are used to define a data block in the memory with number of data types, like integer numbers, floating point numbers, characters, structures, … etc. C & C++ programming language provides this data structure, called as array that stores a fixed-size of elements of the same type. Arrays are generally used to store a collection of data, and it is often more useful to store data as a…
Read more
C++Introduction to C++Learn C++

Learn How To Use Operators In C++

C Programming language is one of the oldest programming language. A lot of operands in other programming languages got inspiration from this language. C and C++ have the same operators and most of them are the same in other programming languages. In programming variable at the left side of the equation symbol is a new variable, or variable that will have new value from the right side of the…
Read more
C++Introduction to C++Learn C++

Learn To Use For Loops In C++

In programming, one of the most used statement is for() loops. It is used to count in range with given conditions. If you know exactly how many times you want to execute a block of code in your loop, then they are very useful than other loops. Occasionally, it is used to…
C++Introduction to C++Learn C++

Learn to Use Strings in C++

In C programming language ASCII codes are used as in char arrays to store texts in ASCII mode. You can use char arrays in both C and C++, they are faster in operations and they have less memory usage. In s modern way, strings are useful for storing texts and they are defined…
C++Learn C++Videos

Learn C++ With A Relaxed Guide to memory_order_relaxed by Paul McKenney and Hans Boehm (CPPCon 2020) Video

Over the years, the out-of-thin-air (OOTA) and read-from-untaken-branch (RFUB) properties of the memory order relaxed specification have caused considerable consternation. While there are no known instances of full-blown OOTA activity and no known RFUB-induced production code failures, the theoretical possibility of these properties seriously complicates automated analysis of large C and C++ code…
Read more