C program to concatenate strings | CodeTextPro - CodeTextPro | Web Tutorial | Technology

CodeTextPro.com Provides - Web design, Technology gyan, Digital marketing, Online earnings, Seo, Adsense, Technology news, Motivation and inspiration, Latest Technology Affairs, Gadgets, Blogging

Thursday, January 24, 2019

C program to concatenate strings | CodeTextPro

Strings Concatenate

C program to concatenate two strings, for example, if the first string is "C " and the second string is " Program"  then on concatenating these two strings we get the string "C Program." To concatenate two strings we use Strcat function of string.h, to concatenate without using the library function.

C Program to concate string

Example #1:




char s1[10];

char s2[10];

printf("Enter the first string: ");


printf("Enter the second string: ");





Output of program:

C Program to Concatenate Two Strings

1 comment: