//String Concatination
#include
#include
using namespace std;
char* strcat(char*,char*);
int main()
{
char str1[100];
char str2[100];
cout<<" Enter the string 1: ";
cin>>str1;
cout<<"\n Enter the string 2: ";
cin>>str2;
cout<<"\nconcatinated string is: "<
return 0;
}
char* strcat (char* frst, char* scnd)
{
char* rslt = frst;
while (*frst++ != '\0');
frst--;
while ((*frst++ = *scnd++) != '\0');
return rslt;
}
Use "+". Example: String string = "does this answer " + "your question?";
This is not a question.
Yes
If you don't need to preserve the first string you could just iterate over the second string and copy each character onto the end of the first string, then return that
int i = 0; while(str[i] != NULL){ i++; }
v can concatenate two string by using a function like: select CONCAT( CONCAT('ename','e_mrks'),"name","marks" from student;
shashi
Without any function is impossible. So I'll assume you mean any coded function, in which case the predefined function below is your answer.$string = strrev($string);
Use "+". Example: String string = "does this answer " + "your question?";
Win/Dos: copy file1+file2 tofile unix: cat file1 file2 >tofile
SELECT char_length (...) FROM ...
This is not a question.
Yes
You can concatenate text either using the CONCATENATE function or the & operator. If you had text in cell A2 and cell B2 that you wanted to add together in another cell you could do it in either of these ways: =A2 & B2 =CONCATENATE(A2,B2)
You can concatenate using the & operator. So say you have a firstname of a person in cell B2 and their surname in cell C2 and in D2 you want to display their first name, a space and their surname together, you would do this: =B2 & " " & C2 You could also use the CONCATENATE function to do the same thing: =CONCATENATE(B2," ",C2)
Sure, you can write a function in C to convert a string to Pig Latin without using pointers by passing the string as a parameter and manipulating it directly within the function. You can split the string into words, check if a word starts with a vowel or consonant, and then apply the appropriate transformation following the rules of Pig Latin. Remember to allocate enough memory for the modified string to prevent buffer overflow.
If you don't need to preserve the first string you could just iterate over the second string and copy each character onto the end of the first string, then return that