You are on page 1of 1

String Example 1

============================================
#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
clrscr();
char alpha[]="hello";
const char *beta=alpha;
char *b=alpha;
cout<<beta<<endl;
strcpy(b,"pakistani");
cout<<beta<<endl;
getche();

http://www.ravianeducation.blogspot.com
FARHAN: 03008855006