Tagged: Arrays


Programming In C: Arrays With Pointers

Pointers and arrays are closely related in C.  Using indexes and pointers to access the contents of an array are simply two sides to the same coin.  They offer two perspectives that aim towards the same goal.  With pointer arithmetic (which we covered in the article on pointers), you can access each element in the array one after another or randomly.  With array indexing you can specify a short hand number that is easier to understand and read but does the same thing.


Programming in C: Arrays and Strings

Arrays give us a wealth of opportunities to creatively solve our problems, and I hope I was able to elaborate on more of their functioning in this article.  They can be confusing at first, particularly multi-dimensional arrays, but they are simply sequences (of seqences of sequences…).  Thanks for reading