Example1:
sprintf (to, "%s%", from1, from2);
Example2:
size_t len1= strlen (from1);
memcpy (to, from1, len1);
strcpy (to+len1, from2);
Win/Dos: copy file1+file2 tofile unix: cat file1 file2 >tofile
Using strcpy and strcat. Or sprintf. Or strlen+memcpy. There are more than solutions.
#include#include#includevoid main(){char str1[30],str2[30];int l1,l2,i;clrscr();gets(str1);gets(str2);l1=strlen(str1);l2=strlen(str2);for(i=0;i
use strcat, strncpy, stpcpy, sprintf, strlen+memcpy, etc
char* strcat (char* destination, const char* source) { char* return_value = destination; // temp destination for return while (*(destination++) != '\0'); // find end of initial destination while ((*(destination++) = *(source++)) != '\0'); // copy source to end of destination return return_value; // return original value of destination }
//String Concatination#include#includeusing namespace std;char* strcat(char*,char*);int main(){char str1[100];char str2[100];coutstr1;coutstr2;cout
v can concatenate two string by using a function like: select CONCAT( CONCAT('ename','e_mrks'),"name","marks" from student;
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)
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)
No.
One way to play a guitar without strings is by using a technique called "air guitar," where you mimic playing a guitar without actually having one. Another way is to use a guitar simulator app on a smartphone or computer to create music without physical strings.
Someone can play the guitar without using their hands by using their feet to press the strings on the fretboard or by using special devices that allow them to play with their mouth or other body parts.