+ 2
C-style strings are character arrays: char word[] = "Hello World!"; word[5] = '-'; cout << word; //Hello-World! The last character in a C style string is the '\0' character, so you don't need to know the length when working with them.
27th Mar 2019, 4:37 AM
Vlad Serbu
Vlad Serbu - avatar