|
Hi,
One way to remove space would be to use isspace() function. One can check each character whether it is isspace() and if satisfies leave that can go to the next character. If it is not satisfied you can store that character in a character array separately. After the whole string is checkd theycan print the new character array which has all the spaces removed in it. But while thinking in this line I have a related question namely what is the header file under which this isspace is placed. Somebody clarify this because this also need to be included while using isspace() function. Also let me know whether isispace can handle only single-space.
Regards,
Allan
|