November 26th, 2012, 02:36 AM
Help required -How to put dot(.) in a string in C?
I am having string and I want to place dot(.) at 3rd and 6th position as given below--
I am having string "10111988" and I want to convert it as "10.11.1988"
I will appreciate and thanks in advance..
November 26th, 2012, 02:44 AM
So what have you tried so far?
This isn't a forum where you can just dump your assignment and expect us to give you a finished answer.
November 26th, 2012, 04:23 AM
The easiest way is to copy the string character-by-character, inserting the periods where needed.
Originally Posted by smartgupta
If you really want to change the string in place (make sure it has enough space) you need to move the characters right.
Post your attempt and some one will certainly help you