What are you talking about? His array size is 3. So you can access only elements arr[0], arr[1] and arr[2].
In his code he is doing something like *(array_ptr+1*sizeof(int)) which is equivalent to arr[4] assuming integers are 4 bytes long. This is wrong.
*(array_ptr+2*sizeof(int)) accesses the element arr[8] which is also wrong.
Thanks
Anonymous
net
Puspam
conko
\Device\NUL
Ammar
Alviro Iskandar
mj12
Boom
Om
Prakhar
Amy
Painter👨
Lucas
ALTER EGO
ngdream
klimi
Ethan Raul