Yes, this is possible:
But ref only refers to the value 0. It has a different meaning than a NULL pointer which signifies that it doesn't point to anything.Code:const int& ref = 0;
And anyway, you can only create your "null references" for integral types (or types where such implicit construction is possible) only.