int* myPointer = new int[100]; // ... int firstValue = *(myPointer + 0); int secondValue = myPointer[1];
Is there any functional difference betwe
Functionally, they are identical.
Semantically, the pointer dereference says "Here's a thing, but I really care about the thing X spaces over", while the array access says "Here's a bunch of things, I care about the Xth one."
X
Xth
In most cases, I would prefer the array form.