#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char source[]= "computer";
char target[40]= "education";
printf("\nFirst sting:%s\n", source);
printf("\nSecond sting:%s\n", target);
strcat(target, source);
printf("\nafter string concatenation:%s\n", target);
getchar();
}
#include<conio.h>
#include<string.h>
main()
{
char source[]= "computer";
char target[40]= "education";
printf("\nFirst sting:%s\n", source);
printf("\nSecond sting:%s\n", target);
strcat(target, source);
printf("\nafter string concatenation:%s\n", target);
getchar();
}
0 comments:
Post a Comment