Sabtu, 26 November 2016

what is this the use of & and * operators in C++

A pointer (will be explained in detail later)  is a memory address. A pointer variable is a variable which is capable of holding the address of another memory location. We use two operators along with pointers. They are address (&) operator and dereferencing (*) operator.   The syntax for declaring a pointer is a follows: data-type  *pointer-name;   So, while declaring a pointer variable we have to use *. Let’s declare an integer pointer. int *p;   In the above example p is a pointer of the type int. It is capable of storing the address of a memory location

The post what is this the use of & and * operators in C++ appeared first on Coding Security.


what is this the use of & and * operators in C++
read more

Tidak ada komentar:

Posting Komentar