Hi,

I have 2 arrays and i want to put them in one array.

array1[10]="hello"
array2[10]="you"

array12[10]="hello you"

How can I do this. Many thx!

Hi,

I have 2 arrays and i want to put them in one array.

array1[10]="hello"
array2[10]="you"

array12[10]="hello you"

How can I do this. Many thx!

Study the C standard function strcat() or its cousin strncat(). Those two functions are designed to concatenate strings.
strcpy() might be needed to copy the first string into a new variable.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.