The indirection operator (*) - dereference operator.
The indirection operator (*) is also called the dereference operator. When a pointer is dereferenced, the value at the address stored by the pointer is retrieved.
Read tutorialTHE TUTORIAL LIBRARY
The indirection operator (*) is also called the dereference operator. When a pointer is dereferenced, the value at the address stored by the pointer is retrieved.
Read tutorialEvery variable has an address. Even without knowing the specific address of a given variable, you can store that address in a pointer.
Read tutorialPointers present two special challenges when learning C++: They can be somewhat confusing, and it isn't immediately obvious why they are needed. This article introduces how pointer
Read tutorialif and if/else statements can become quite confusing when nested too deeply, and C++ offers an alternative. Unlike if, which evaluates one value, switch statements allow you to bra
Read tutorialLoops may be nested, with one loop sitting in the body of another. The inner loop will be executed in full for every execution of the outer loop. This c++ program illustrates writi
Read tutorialfor statements are powerful and flexible. The three independent statements (initialization, test, and action) lend themselves to a number of variations.
Read tutorialWhen programming while loops, you'll often find yourself setting up a starting condition, testing to see if the condition is true, and incrementing or otherwise changing a variable
Read tutorialIt is possible that the body of a while loop will never execute. The while statement checks its condition before executing any of its statements, and if the condition evaluates fal
Read tutorialThe condition tested in a while loop can be any valid C++ expression. As long as that condition remains true, the while loop will continue. You can create a loop that will never en
Read tutorialAt times you'll want to return to the top of a while loop before the entire set of statements in the while loop is executed. The continue statement jumps back to the top of the loo
Read tutorialA while loop causes your program to repeat a sequence of statements as long as the starting condition remains true. The following program shows advantages of a while loop instead o
Read tutorialIn C++, a label is just a name followed by a colon (:). The label is placed to the left of a legal C++ statement, and a jump is accomplished by writing goto followed by the label n
Read tutorialOne example today. A better developer tomorrow.