Introduction to Strings

Learn about strings and the basic syntax for declaring and initializing strings in C.

What is a string?


A string is an array of characters terminated by a special string terminator, \0.


A string comprises one or more characters. A character can be a letter, number, or space. For example, "Sanjay" is a string.

Get hands-on with 1200+ tech skills courses.