Use array subscript instead of pointer

To better understand the process.