CONCATINATION:
IN SIMPLE WORDS CONCATINATION IS USED TO JOIN THE CHARACTER STRINGS END TO END.
FOR EXAMPLE: MOTHER BOARD.
HERE MOTHER IS STRING 1 AND BOARD IS STRING 2. SO CONCATINATION COMBINES THE BOTH WORD AND GIVES RESULT AS MOTHER BOARD.
NOW LET US SEE AN EXAMPLE PROGRAM FOR CONCATINATION.
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char s1[200]="RHN";
char s2[200]="RSS";
clrscr();
printf("\n%s",strcat(s1,s2));
getch();
}
No comments:
Post a Comment