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
Define Spanning-Tree Protocol (STP)
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
What is character set?
Explain what is the concatenation operator?
What is the difference between int main and void main in c?
Explain how do you determine a file’s attributes?
How do you write a program which produces its own source code as output?
write a program in c language to print your bio-data on the screen by using functions.
What is the difference between NULL and NUL?
What is the difference between %d and %i?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
Explain how can type-insensitive macros be created?
Explain the difference between getch() and getche() in c?
What is storage class?
What are the types of type qualifiers in c?