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
What is a memory leak? How to avoid it?
What is cohesion and coupling in c?
What standard functions are available to manipulate strings?
Explain #pragma statements.
What are the 3 types of structures?
What is meant by type specifiers?
Which header file is essential for using strcmp function?
What is the difference between array and pointer?
How can I write functions that take a variable number of arguments?
What are the general description for loop statement and available loop types in c?
Explain how do you convert strings to numbers in c?
Can you subtract pointers from each other? Why would you?
What is the difference between Printf(..) and sprint(...) ?
What are the types of data files?
Who is the main contributor in designing the c language after dennis ritchie?