Use pointers instead of arrays for efficiency if we know the size