Pages

Copy one string to another using strcpy() function

Friday, 19 April 2013



#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();
}

 

Search Box

Most Reading

Contact Form

Name

Email *

Message *