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 wrong with this statement? Myname = 'robin';
How can you check to see whether a symbol is defined?
What is the difference between exit() and _exit() function?
Is it possible to execute code even after the program exits the main() function?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What's a good way to check for "close enough" floating-point equality?
write a program to print data of 5 five students with structures?
What does %p mean c?
What is getch?
What are predefined functions in c?
What is the general form of a C program?
What does the function toupper() do?
Why n++ execute faster than n+1 ?
Write a program of prime number using recursion.
Write a program for finding factorial of a number.