Lecture 75
#include <iostream>
#include <conio.h>
using namespace std;
main ()
{
char
name[10]="Shahid";
int i;
cout<<"Name: ";
for(i=0;name[i] !=
'\0';i++)
{
cout<<name[i];
}
getch();
return 0;
}
Code view in dev compiler:
Compile the program Ctrl+F9
Run program Ctrl+F10