devxlogo

Why void& Type is Illegal

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.

devx-admin

Share the Post: