Answer P5

No.


Comments: The statement

 &a = 77 ;

Is not syntactically correct. The operator & means "compute the address of" and makes no sense on the left of an assignment operator.

You might think it means "put 77 in the address of a" or "make address a 77". But it does not. To use an address (a pointer) you need a *.

Again, keep in mind pointer variable vs. pointer value. The 77 is an ordinary integer literal. The &a is a pointer value (an address). Doing this:

 &a = 77 ;

is like trying to assign one value to another:

 162 = 77 ;

It does not make any sense.



Back to Puzzle Home