In the first case, you set char_pointer to the first element of array_thing (rather, its address). Using pointer arithmetic will lead you to other elements, as well as indexing. for instance
char_pointer[3] = 'c';
coincides with
char_pointer + = 3; char_pointer = 'c';
The second example ... I do not believe that this is the way you do it.
source share