I am under the impression that one can declare a pointer, list, and assign to it values as if it were an array. I attempted to do so, and got the error: lvalue required as left operand of assignment.
Code:int main()
{
int* list;
int a=2, b=3;
list = &a;
(list + 1)= &b; /* why does this not work? */
return 0;
}