0
What is the use of string?
2 Antworten
0
storing things(eg: user input, phrases etc)
string van hold anything(any letter number symbol etc)
0
#include <iostream>
using namespace std;
int main() {
string s1 = "string";
string s2 = "1,2,3 are not numbers but are characters";
cout<<s1<<endl;
cout<<s2;
return 0;
}