+ 1

DON'T UNDERSTAND

13th Sep 2017, 9:31 AM
Janu Fouche
Janu Fouche - avatar
2 odpowiedzi
+ 17
Check and read this again: https://www.sololearn.com/Course/CPlusPlus/ ✌🙃😊😊 A pointer is a variable, with the address of another variable as its value. In C++, pointers help make certain tasks easier to perform. Other tasks, such as dynamic memory allocation, cannot be performed without using pointers.
13th Sep 2017, 9:32 AM
Nithiwat
Nithiwat - avatar
+ 3
pointers are basically address of a variable. EDIT: it helps to keep your data in heap by storing memory address. It is especially important when you don't know how much memory will be required in advance. note that pointers can be used to store address from stack as well.
13th Sep 2017, 9:34 AM
shobhit
shobhit - avatar