Tagged: Char

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.