codexmax
10-23-2009, 03:16 AM
I know what lvalues and rvalues are but in this context i'm confused.
Assume that 'a' is declared as a one-dimensional array of ints. In the proper context, the expression 'a' (unsubscripted array name) does NOT yield an lvalue reference to the base address of the array.
My question is why? I don't understand why it would yield an rvalue. If you could look at this and help me grasp this concept it would be much appreciated.
Assume that 'a' is declared as a one-dimensional array of ints. In the proper context, the expression 'a' (unsubscripted array name) does NOT yield an lvalue reference to the base address of the array.
My question is why? I don't understand why it would yield an rvalue. If you could look at this and help me grasp this concept it would be much appreciated.