Pointers Review
Pointers Review
Declare the variable which is not a pointer in assignment = to dereferenced variable BEFORE the
ACTUAL pointer = to the variable where it will get its value from.
ptr = &num1;
*ptr = num1;
Pointers can replace the content of a chosen variable as long as the actual pointer is set to
another value;
ptr = &num1;
*ptr = 1250;
*age;
In order to use a pointer in an array and modify the data inside it using a for loop: follow the
syntax:
*(array_Name + identifier);