This has nothing to do with it being statically sized or variably sized. You have to know what size it is when you are going to reverse it. The solution presented works as long as the programmer knows what the size is.
If you want to posit any kind of sane question, then you can have a sane solution.