C++Tutorial for Beginners 39 - Pointers and Arrays

There's a strange and curious parallel between arrays and pointers in C++. It turns out, in fact, that they are almost the same thing and can be used interchangeably in some situations. We can make use of the fact whenever we want to work with functions and arrays, returning arrays or passing them as parameters, and we can use pointers to iterate over arrays too.