|
Description
This shows how to concatenate
(join together ) the contents of one
string onto another string . We achieve
this by using the strcat( ) function
. This requires that you include the
<string.h> ..
Code
#include <stdio.h>
#include <string.h>
int main()
{
char name[100] = "Programmers
help : ";
strcat(name, " C section .");
printf("%s",name);
return 0;
}
Information
tested using LCC Win
32
|