Saturday, April 28, 2012

7.31

Why is the following code illegal?


{
int x;
&x = (int *) malloc(sizeof(int));
...
}

Assignments cannot be made to an "address of" statement

No comments:

Post a Comment