Alternatively, we could modify the pointer value to sequentially access each element of the array using the increment operator. We can, therefore, eliminate the four extra incremental assignment statements and make our code a bit more concise, as follows:
*pArray1++ = 1; // first element (zeroth offset)
*pArray1++ = 2; // second element (first offset)
*pArray1++ = 3; // third element (second offset)
*pArray1++ = 4; // fourth element (third offset)
*pArray1 = 5; // fifth element (fourth offset)
This is a very common C idiom that is used to access and increment the pointer in the same statement. The * operator has equal precedence with the unary operator, ++. When two operators have the same precedence, their order of evaluation is significant. In this case, the order of evaluation is left to right, so *pArray is evaluated first and the target of the pointer evaluation is then assigned a value. Because we use the ++postfix,pArrayis...