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
How does struct work in c?
What are different types of variables in c?
Why clrscr is used in c?
What is the sizeof () operator?
What are the types of data files?
Explain how do you print an address?
What is the size of array float a(10)?
What is else if ladder?
How can you find the day of the week given the date?
Write a C program to count the number of email on text
Write a program to check armstrong number in c?
What is a memory leak? How to avoid it?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
Tell me about low level programming languages.
What is #include stdio h and #include conio h?