int x;
function () =x;
Is the assignment statement in the sample code above legal or illegal?
a) It is legal if the return type of function is a reference to int.
b) It must be illegal since the left side of the assignment operator is not
an rvalue.
c) It must be illegal since the left side of the assignment operator is not
an lvalue.
d) It is legal if the return type of function is a pointer to int.
d) It is legal if there is an overloaded, non-member assignment operator.