When you pass a character array to a function, you are effectively passing its address.
So, if the array is changed inside the function, the changes are reflected back to the array you pass.
Here...