int counts = 0;
int *pointer_counts = &counts;
A pointer is a variable that stores the memory address of another variable as its value.
A pointer variable points to a data type (like int
, str
) of the same type, and is created with the *
operator.
When print out the pointer, it would look something like this.
Code: