Example 1

 

#include <string.h>
#include <stdio.h>

int main(void)           // how to use strcat and strcpy
{
char destination[25];
   char *blank = " ", *c = "C++", *Borland = "Borland";

   strcpy(destination, Borland);
   strcat(destination, blank);
   strcat(destination, c);

   printf("%s\n", destination);
   return 0;
}

Hosted by www.Geocities.ws

1