C Program to Concatenate Two Strings

preview_player
Показать описание
In this example, you will learn to concatenate two strings manually without using the strcat() function.
As you know, the best way to concatenate two strings in C programming is by using the strcat() function. However, in this example, we will concatenate two strings manually.
Here, two strings s1 and s2 and concatenated and the result is stored in s1.

It's important to note that the length of s1 should be sufficient to hold the string after concatenation. If not, you may get unexpected output.
Рекомендации по теме
Комментарии
Автор

Bhai string user se input karani he or uski length and conconate karna he

sanatan