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