|
Displaying Source Code(s)
|
|
Program to remove multiple spaces from a string.
--------------------------------------------------------------------------------
Description : This program reads the string and removes multiple
spaces
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
char s[50]="Earth on Planet",t[50];
char *s1=s;
int i=0,j=0;
for (i=0; s[i]!='
|
|
|