3 ms·
You're right, the article is wrong. If integer_array is an array of ints or a pointer to an int, then integer_array[5000] is equivalent to *(integer_array +
by greenyoda 14y ago
You're right, the article is wrong. If integer_array is an array of ints or a pointer to an int, then integer_array[5000] is equivalent to
*(integer_array + 5000), not
*(integer_array + (5000 * 4)),
since pointer arithmetic in C automatically adjusts for the size of an array element.