Namespaces
Variants
Views
Actions

intro/strings

From cppreference.com

String are the bunch of Characters i.e is declared by using the following Code.


/*Code to Know more about the strings. Try out*/

char string1[100]; // it can store upto 100 characters char string2[]="Hello, world"; cout<<string2<<endl; cout<<"Enter some data:"; cin>>string1; cout<<"The String1 Contains :"<<string1;