Write The Program To Concatenate Two String Without Using String Library Function?

1 year ago
C Programming

#include<stdio.h>

#include<conio.h>

void main()

{

char str1[10];

char str2[10];

char str[20];

int i,j,k,l;

printf(“Enter first string: \n”);

scanf(“%s”, str1);

printf(“Enter second string: \n”);

scanf(“%s”, str2);

for(i=0;i<10;i++){

if(str1[i]==’\0′)

break;

}

for(j=0;j<10;j++){

if(str1[j]==’\0′)

break;

0
Rusma Khadka
Dec 29, 2022
More related questions

Questions Bank

View all Questions