can we create a string function in cpp code example
Example 1: how can make string value in cpp
#include <string>
string hello= "hello you thre :)";
Example 2: how to print string data type in c++
printf("%s\n",someString.c_str());
#include <string>
string hello= "hello you thre :)";
printf("%s\n",someString.c_str());