+ 2
Please someone explain me the concept of pointers with offset.
2 Antworten
+ 4
A pointer is an address of a variable. When you offset a pointer by a positive number, you increment that address by that number of units where the size of a unit is the size of the type of variable that you are pointing to.
+ 4
And that's why array works by reference. The name of an array holds the pointer to the address of the first element.