+ 1
DON'T UNDERSTAND
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.
+ 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.