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++

Discover Switch Statements in C++

Another one of the most used logical operators in C++ is switch() statement. A switch statement allows you to check variable and you can branch to different cases in accordance with it’s value. Each cases can be defined for different values, and the variable being switched on is checked for each case.When the switch expression is evaluated once, the value of the given expression is…
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++Introduction to C++Learn C++

Learn To Use Mathematical And Trigonometric Functions In C++

C & C++ is good to operate in mathematical operations because of its wide variety of variable definitions, wise memory usage and it’s operators in mathematics. C++ has a lot of mathematical functions that you can do mathematical tasks. Some operators may work with integers, some works with floating numbers, most are usable with both integer and floating (or double) numbers. All functions…
Read more