0
What is a string in c++
String
2 Answers
+ 5
String is a 1D array of char datatypes. It can be used in C++ if you include the library <String> . It is very useful because the library contains a lot of in-built functions like strcpy (used to copy 2 strings), strcat (used to join 2 strings) etc.
+ 10
An array of characters.
string str = "Hello World!";