I have the homework assignment where I should remove all leading spaces in the char array. If there is a space in the beginning of the array, it should be deleted too. Also, I have to take care about an empty array. I can't use `<cstring>` and `<string.h>`. Also, I can't create any additional arrays. I googled a lot, but I have no idea how to solve this problem. Here is what I have so far.

```
void clean(char* tab) 
{
    //char *p = tab;
    for (int i = 0; i <= sizeof(tab); i++) 
    {
        if ((tab[i] = ' ') && (tab[i + 1] = ' '))
        {
            tab[i] = tab[i + 1];
        }
    }
}

int main()
{
    char tab1[] = "   h qa  w e ";
    cout << tab1 << endl;
    clean(tab1);
    cout << tab1 << endl;
}

```

Will be very gratefull if someone can give me a hint how to figure it out.