J
junky_fellow
Consider the following piece of code:
(char *)0x100; /* I know that converting an integer to pointer
type is implementation defined. But forget
this for a moment */
My question is,
Why the above expression is not an lvalue ? It both specifies the
the storage location as well as the type of object ?
When I try to increment it
(char *)0x100++;
I get the error, that it is not an lvalue.
(char *)0x100; /* I know that converting an integer to pointer
type is implementation defined. But forget
this for a moment */
My question is,
Why the above expression is not an lvalue ? It both specifies the
the storage location as well as the type of object ?
When I try to increment it
(char *)0x100++;
I get the error, that it is not an lvalue.