Take input of string in C++ by R4R Team

How take an input of string in C++ ?

program-

#include
using namespace std;
int main()
{
char s[20];
cout<<"Enter Any string";
cin>>s;
cout<<"String is: "< }


output-


Enter Any string
Myakashsingh
String is: Myakashsingh




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!