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
List a few unconditional control statement in c.
Is that possible to store 32768 in an int data type variable?
What is main () in c?
What is the difference between the = symbol and == symbol?
When should a far pointer be used?
code for replace tabs with equivalent number of blanks
What is string concatenation in c?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
What are the types of operators in c?
What are structure types in C?
Explain can static variables be declared in a header file?
What is ctrl c called?
Write a program to reverse a given number in c language?
What is the difference between the expression “++a” and “a++”?
What is openmp in c?