Wait, You Said There Wouldn't Be Any More Pointers!
No, if you recall from last time, I mentioned there could be pointers that point to other pointers. How could you think we wouldn’t cover this! Plus, there is something super cool we can do with this so stay tuned!
Multidimensional arrays as the name implies, means we can have arrays within arrays. Since arrays defined by a pointer, we can create an array of pointers. Within each pointer, we can have an array. Thus, 2D arrays! Let’s do a quick summary of double pointers first:
Now, let’s get into some 2D arrays!
Now that we know more about 2D arrays, let’s see an example:
Founder and CEO of R U Coding Me LLC. Jacob obtained his Bachelor’s of Computer Science at the University of Central Florida. He likes to go to the gym and teach people about technology.