Kamis, 12 Maret 2020

C++ Tutorial: Pointer

Hello C++ Programmer, welcome.

In this tutorial we will discuss about pointer.

Pointer is just a different type of variable. This type of variable holds not value (integer value, float value, character value) but memory address.

As you know, all our data or value of a variable is stored at certain address of the memory.

So, this type of variable (pointer, I mean) holds it (address of the memory).

There are 3 types of activity that you can do oftenly with pointer, for instances:
1. Creating pointer variable.
2. Assigning a memory address to a pointer variable.
3. Accessing value

It just how to declare it. It doesn't mean

Pointer also can have arithmatic operation 

To read pointer arithmatic operation you can read in here. 

Tidak ada komentar:

Posting Komentar