We have the variable a
, that is the type char*
, that stores char
s in an array. How are *(a + 2)
and a[1]
related?
a[1]
points to the second element in the array and *(a + 2)
points to the second element following the element pointed at to by a
. So would the values of these two be the same?