Program to concatenate two strings in c

preview_player
Показать описание
Hello Guys ! Glad to say

This is a Rare Rogrammers !

New YouTube Channel for All Software Developer !

Everyone Can do Programming !

Software Developer is not only software that controls all devices which can run on electricity or controller !

Everyone can do the software in our future this is one of the most important controller ☺️

In this we learn C, C++, Java, Python, Html, etc !

We first learn C programming !
Рекомендации по теме
Комментарии
Автор

#include<stdio.h>
#include<string.h>
void main(){
int len, i;
char str1[100], str2[50];
printf("Enter the first string: ");
gets(str1);
printf("Enter the second string : ");
gets(str2);
len=strlen(str1);
for(i=0;str2[i]!='\0';i++){
str1[len+i]=str2[i];
}
str1[len+i]='\0';
printf("Concatinated string is : %s\n", str1);
}

rarerogrammers
join shbcf.ru