Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to removing white spces in c programming only bu using
loops

Answer Posted / ranj

Aravind has done few mistake in printing the no,
the correct format should like this

int main()
{
int i,number;
char str[10];
gets(str);
number=strlen(str);
printf("String without white space\n");
for(i=0;i<number;i++)
{
if(str[i]==' ');
else
printf("%c",str[i]);
}
}

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c language used for?

1026


can anyone suggest some site name..where i can get some good data structure puzzles???

2158


Where define directive used?

1146


What is multidimensional arrays

1175


Is struct oop?

1061


Why void main is used in c?

1103


what will be the output for the following main() { printf("hi" "hello"); }

11163


What is difference between union and structure in c?

1244


What are data types in c language?

1109


What are identifiers in c?

1239


What is a rvalue?

1261


An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

1218


What is null in c?

1154


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

1129


i want to know the procedure of qualcomm for getting a job through offcampus

2518