I need help someone im trying to delete the blanks of this array of strings stored in str loop but cant copy wihtout delete spaces please help some one.. thanks
void deblank(char str[MAX_STR], char result[MAX_STR])
{
int num; //variable to hold value for string length
int i, j; // loop control variable
// strcpy(result,str);
num = strlen(str);
for(i=0 ;i<=num; i++) // loop to store vaules in array
for(j=0; j<=num; j++)
{
if (str[i] != ' ')
result[j]= str[i];
}
return;