Syntax

A String is an Array of characters, therefore, to declare one, you may use the following syntax.

    char string_name[size + 1];

Remember to add 1 to the expected size of the string, to account for ‘\0’.

To define a String, you can do it the way arrays are defined…

    char string_name[size + 1] = {comma_separated_list_of_characters, ‘\0’};