Lecture 48
Array
// String Array
#include <iostream>
#include <conio.h>
using namespace std;
main ()
{
char name[10]; //declaration
cout<<"Enter your name: ";
cin>>name;
cout<<"My name : "<<name;
getch();
return 0;
}
Code view in dev compiler:
Compile the program Ctrl+F9
Run program Ctrl+F10