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 the method to save data in stack data structure type?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
Why is not a pointer null after calling free?
What are lookup tables in c?
How do I read the arrow keys? What about function keys?
What is difference between far and near pointers?
Why do we need arrays in c?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
how to execute a program using if else condition and the output should enter number and the number is odd only...
What are header files in c programming?
Why do we use return in c?
What are the advantages of c language?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
Process by which one bit pattern in to another by bit wise operation is?