#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();
}
a write the algorithm to concatenate two given string
It is called strcmp, part of the standard run-time library. Returns 0 if the two strings are equals, non-zero otherwise.
#include<stdio.h>
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.
Write a program using recursion which should take two values and display 1st value raised to the power of second value.
nahi malum
a write the algorithm to concatenate two given string
because when you tie a knot you join two strings together and when you get married you join the person you are marrying
write a c program to circular queue
#include main() { //please read two strings int str1 and str2// while(str1[i]!='/0' &&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' &&str2[i]!='/0') if(str1[i]!=str2[i]) flag=1; if(flag==1) printf("equal"); }
1*01+01*
write it in 8085
It is called strcmp, part of the standard run-time library. Returns 0 if the two strings are equals, non-zero otherwise.
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
fish
#include<stdio.h>
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.