Question

Hi,

What is lvalue in C++ ?

Thanks.
it's an expression (not to be confused with a variable), which designates an object. A simple way to tell if something is an lvalue is if you can take its address (this only fails for bit field lvalues, whose addresses cannot be taken)

see http://en.cppreference.com/w/cpp/language/value_category for detail
Last edited on
Got it, thanks.
Topic archived. No new replies allowed.