//Program to copy one string to another using Pointer

| |


#include<iostream.h>
#include<conio.h>
  int main()
  {
  clrscr();
  char*str1="you are copying";
  char str2[20];
  void copystr(char*,char*);
  copystr(str1,str2);
  cout<<"string2"<<str2;
  getch;
  return 0;
  }
  void copystr(char*dest,char*src)
  {
  while(*src!='\0')
  *dest++=*src++;
  *dest='\0';
  return;
  }
<