0

What is ment by this pointer??

what is the applications and use of this pointer

19th Jul 2017, 3:24 PM
VIJAY MADDINENI
VIJAY MADDINENI - avatar
2 Answers
+ 14
A pointer is a variable that holds a memory address. This address is the location of another object (typically, a variable) in memory. That is, if one variable contains the address of another variable, the first variable is said to point to the second. You can use pointers to navigate arrays: An array is a block of contiguous memory that has been allocated with a specific type.
19th Jul 2017, 3:33 PM
The Search
The Search - avatar
0
A variable is said to be a pointer if it points towards the address of any variable. It is used to store the address and we can use the value stored at that address by simply dereferencing (*) a pointer that should be pointing towards value's address. In this way pointer works. Pointers are widely used in dynamic memory allocation techniques and in programming data structures which is a very important stuff in c/c++. So u should grab it thoroughly to have a good command in c++.
1st Aug 2017, 7:27 AM
Gaurav Sharma
Gaurav Sharma - avatar