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 / aravind

int main()
{
int i;
char str[10];
gets(str);
for(i=0;i<=number;i++)
{
if(str[i]==' ')
str[i]=0;
}
printf("string without white space is=%s",str);
}

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wrong with this statement? Myname = 'robin';

1332


How can you check to see whether a symbol is defined?

1106


What is the difference between exit() and _exit() function?

1054


Is it possible to execute code even after the program exits the main() function?

1350


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1955


What's a good way to check for "close enough" floating-point equality?

1174


write a program to print data of 5 five students with structures?

2056


What does %p mean c?

1081


What is getch?

1204


What are predefined functions in c?

1112


What is the general form of a C program?

1032


What does the function toupper() do?

1141


Why n++ execute faster than n+1 ?

3033


Write a program of prime number using recursion.

1097


Write a program for finding factorial of a number.

1094