Tagged: Strings

0

Programming In C: Literals

Literals are very important in programming, as they are one way to get data into a program.  Assigning literals to variables allows us to specify a number of things such as the number of times we’re going to perform an operation.  Using literals in various parts of the program allow us to specify how large an array is going to be.  Using string literals we might hard-code (that’s when you put data that the program uses straight into the program code) an array of error messages that would be output when certain errors happen.

0

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