Check out example codes for "declaring strings c++". It will help you in understanding the concepts better.

Code Example 1

std::string str = "hello world"; 
char *str = "hello world";
char str[] = "hello world"; 
char str[11] = "hello world";

Learn ReactJs, React Native from akashmittal.com