How does Array.Reverse() method reverse an array of word without any assignment?
The method modifies the array itself, so you can use it in its reversed state right away; there is no need to return a copy of the array to assign back to your existing variable. Arrays are reference types, so their contents can be modified in place without reassigning.
See the MSDN entry for Array.Reverse(), and arrays in the C# programming guide.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With