Copy one string to another using strcpy() function

4/19/2013 06:44:00 pm Unknown 0 Comments



#include <stdio.h>
#include <conio.h>
#include <string.h>
int main()
{
      char str1[]="This is Exersize 1.";
      char str2[20];
      strcpy(str2, str1);
      printf("%s", str2);
      getch();
}