Why void& Type is Illegal

A reference is always bound to an object. In fact, you can think of a reference variable as an alias of its bound object. However, void& is not bound to any object at all and is therefore illegal.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: