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

Define Spanning-Tree Protocol (STP)

1088


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

1076


What is character set?

1134


Explain what is the concatenation operator?

1130


What is the difference between int main and void main in c?

1118


Explain how do you determine a file’s attributes?

1020


How do you write a program which produces its own source code as output?

1083


write a program in c language to print your bio-data on the screen by using functions.

6754


What is the difference between NULL and NUL?

1265


What is the difference between %d and %i?

1064


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

976


Explain how can type-insensitive macros be created?

963


Explain the difference between getch() and getche() in c?

954


What is storage class?

1026


What are the types of type qualifiers in c?

1046