0

What is a string in c++

String

6th Apr 2017, 12:02 PM
Manolis Tsoumenis
Manolis Tsoumenis - avatar
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.
6th Apr 2017, 12:07 PM
Pixie
Pixie - avatar
+ 10
An array of characters. string str = "Hello World!";
6th Apr 2017, 1:40 PM
Hatsy Rei
Hatsy Rei - avatar