answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

main()

{

char s1[20],s2[20];

printf("enter first string");

scanf("%s",s1);

printf("enter second string");

scanf("%s",s2);

string_concatenate(&s1,&s2);

}

count_characters(char *x)

{

int i=0, count=0;

for(i=0;*(x+i)!='\0';i++)

count++;

return count;

}

string_concatenate(char *s1,char *s2)

{

int i,j;

char s3[50];

for(i=0;i

s3[i]=s1[i];

for(j=0;j

s3[i+j]=s2[j];

s3[i+j]=s2[j];

printf("%s",s3);

getch();

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Write a c program to copy two strings using pointers?

nahi malum


A Write the algorithm to concatenate two given strings?

a write the algorithm to concatenate two given string


Why do people say the phrase tie the knot to get married?

because when you tie a knot you join two strings together and when you get married you join the person you are marrying


How to write aC program to merge two singly linked list?

write a c program to circular queue


Write a program to compare two strings with out using strcmp function?

#include main() { //please read two strings int str1 and str2// while(str1[i]!='/0' &amp;&amp;str2[i]!='/0') if(str1[i]!=str2[i]) flag=1; if(flag==1) printf("equal"); } #include main() { //please read two strings int str1 and str2// while(str1[i]!='/0' &amp;&amp;str2[i]!='/0') if(str1[i]!=str2[i]) flag=1; if(flag==1) printf("equal"); }


Write a regular expression for binary strings with at least two 0s but not consecutive 0s.?

1*01+01*


Write a program to add two 8 bit numbers in microprocessor 8051?

write it in 8085


Can you tell me a C program to find if the strings are equal using pointers?

It is called strcmp, part of the standard run-time library. Returns 0 if the two strings are equals, non-zero otherwise.


Write a script that accepts two strings from the user and compare two strings in web technology?

how to compare two strings that take input from the user and compare it. For example: i give first string as "THE" and give second string as "HTE" then return "match" if i give first as"THE" nd second string as "EHI" then return "NOtMatch" witout using STRCMP ... please help me


Write an assembly language program to multiply two BCD numbers?

fish


Write a program to find intersection between two arrays?

#include&lt;stdio.h&gt;


What is the Program for compare two strings using OR operator in java?

The String class includes two helpful methods: equals and compareTo.string1.equals(string2) will return true if the two strings contain the exact same charactersstring1.compareTo(string2) will return an int which describes the lexicographic relationship between the two strings. It will return a negative value if string1 is "less than" string2, a positive value if string1 is "greater than" string2, or zero if the two are equivalent strings.