top of page
Strings
In C, Strings are not actual strings of words rather they are arrays of characters which can be output in order from [0]-[endOfArr] in order to form a string. Let's make a string which outputs "Noot Noot".
We will first make a character array the size of our desired text. For each part of the array we will sequentially input our data.
Output:

Example:

Notice how the array starts from zero and how we use the Null Terminator \0 as the last character. When read using the string conversion character %s the array will be printed from its starting point {0} until it finds the Null Terminator.
bottom of page