p = int_array; p[i]; |
p = int_array; *(p + i); |
p = int_array + i; *p; |
for (int i = 0; i < 10; i++) int_array[i] = 0; // Using array-subscript notation
int* p; p = int_array; for (int i = 0; i < 10; i++) p[i] = 0; // Using pointer-subscript notation
int* p; p = int_array; for (int i = 0; i < 10; i++) *(p + i) = 0; // Using pointer + offset notation // - identical to previous example
int* p; p = int_array; for (int i = 0; i < 10; i++) *p++ = 0; // Using pointer dereferencing notation // and manipulating the pointer variable