This while loop works, and deletes the spaces from an array.
I am however wondering why it works. I've been working with C++ as my first programming language (not a very good starting language .. but whatever) and I have not seen a statement such as 'x = y' inside the while condition. How does this work?