An offset generally refers to a value that is added to another base value, usually a (base) pointer in order to access a single element in a sequential list of elements, usually an array.
Example:
- In your case ptr points to the 1st element of the array or charArray[0], *ptr is therefore the value stored in charArray[0];
- If you'd like to address the 5th element you can add an OFFSET to ptr like ptr = ptr + 4; Now *ptr is the value of the 5th element or charArray[4];
So whatever number you write in the brackets are the offset? or in other words the offset is the element you choose in the array (by number aka offset)?
Did i get it right?