What it is? How to work with him?
2 answers
A pointer is a section of memory that points to some other part of it.
For example:
int a = 5; int *b = &a; (*b)++; printf("%d", a); /* Вывод: "6" */ Those. changing the value is not b , but the variable a .
- memory address - Vladimir Gordeev
|
Pointer (Pointer, English pointer) is a variable, the range of values of which consists of addresses of memory cells and a special value - zero address. The value of the zero address is not a real address and is used only to indicate that the pointer cannot be used at the moment to access any memory cell.
|