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
What is c language used for?
can anyone suggest some site name..where i can get some good data structure puzzles???
Where define directive used?
What is multidimensional arrays
Is struct oop?
Why void main is used in c?
what will be the output for the following main() { printf("hi" "hello"); }
What is difference between union and structure in c?
What are data types in c language?
What are identifiers in c?
What is a rvalue?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
What is null in c?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
i want to know the procedure of qualcomm for getting a job through offcampus