New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Strings
How do you return a string in c++?
1 Answer
+ 3
create a function with a data type string.
Eg.
string Reverse(string wrd,int Len) {
// some code here
return wrd;
}
How do you return a string in c++?