Ask your own question, for FREE!
Computer Science 22 Online
OpenStudy (anonymous):

i need help in c programming i am trying to concatenate names together with a comma in between. anyone with any knowledge on that?

OpenStudy (anonymous):

You need to allocate enough space for both the original strings+2. Then just copy from one, append the comma, and copy from the other.

OpenStudy (anonymous):

you can make while loop to take the names with counter if the counter in start don't print comma before the name, other print comma before the name.

OpenStudy (rsmith6559):

If you include string.h, it has a strcat function and probably a strncat function take pointers to strings and concatenates them (or the size in arg3 of strncat) into the string given in arg1's space.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!