Re: returning lvalue in C vs C++



Alf P. Steinbach wrote:

An lvalue is an expression that, roughly, can occur on the left hand
side of an assignment, as opposed to an rvalue, which is limited to
right hand side. In C++ the picture is more complicated, because you
can have 'const' lvalues, which you can't assign to.

C is the same in terms of const lvalues.

--
pete
.