Ask your own question, for FREE!
Computer Science 13 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!
Latest Questions
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
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!