s t r i n g c + + code example Example: how to create a string in c char greeting[6] = {'H', 'e', 'l', 'l', 'o', '\0'}; char greeting[] = "Hello";