How can an array be an lvalue, if you can't assign to it?
C Interview Questions and Answers
(Continued from previous question...)
How can an array be an lvalue, if you can't assign to it?
The term ``lvalue'' doesn't quite mean ``something you can assign to''; a better definition is ``something that has a location (in memory).'' The ANSI/ISO C Standard goes on to define a ``modifiable lvalue''; an array is not a modifiable lvalue.
(Continued on next question...)
Other Interview Questions
|