declare stringin c++ code example
Example 1: declaring strings c++
std::string str = "hello world";
char *str = "hello world";
char str[] = "hello world";
char str[11] = "hello world";
Example 2: how to print string data type in c++
printf("%s\n",someString.c_str());