Tuesday, 25 August 2020

WHAT IS CONCATINATION IN C LANGUAGE? WITH EXAMPLE.

THE FOLLOWING PROGRAM EXPLAINS ABOUT THE CONCATINATION FUNCTION USED IN C PROGRAMMING LANGUAGE.

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

C Programming

What is DBMS in brief?

A Database Management System (DBMS) is a software suite designed to efficiently manage, organize, store, manipulate, and retrieve data. It a...