Accessing arrays using pointer arithmetic