cin and cout work with char array

#include <iostream>
using namespace std;
int main ()
{
char name[ 80] = {'J', 'e', 'f', 'f', '/0' };
cout << "Enter your name: ";
cin >> name;
cout << "Your name is " << name;
return 0;
}
Related examples in the same category