CC Strings
Working with text.
C Strings
Strings are used for storing text/characters.
For example, "Hello World" is a string of characters.
Unlike many other programming languages, C does not have a string type to easily create string variables. Instead, you must use the char type and create an array of characters:
char greetings[] = "Hello World!";
Access Strings
Since strings are actually arrays in C, you can access a string by referring to its index number inside square brackets [].
Examples
Create String
c exampleAccess Character
c exampleModify String
c exampleLoop Through String
c exampleString Functions
c example