Insert a character in a string

Joined
Feb 7, 2011
Messages
1
Reaction score
0
Hi!
Lets say I have a string with numbers "123456789". How can I insert commas to the string to make it look like this "123,456,789"?I want to do this in C and i've tried all kind of methods but i did'n manage to do it.
Can anyone help me please?

Marius
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top