&&**

John Higley johnhi at teksce.SCE.TEK.COM
Thu Sep 27 10:16:22 AEST 1990


As an experiment, I took the program and fed it to Saber-C.  Using the
browsing tool and a lot of printing, I discovered that each of the &
operators returned an L-value.  Going further, I found that the last one did
not.

Here are the results and a little picture:

addr name contents
    __________
2cf | d  |'d'|
    ----------
2d0 |pd  |2cf|
    ----------
2d4 |ppd |2d0|
    ----------

print &(*(*(ppd)))           --> 2cf
print &(&(*(*(ppd))))        --> 2d0
print &(&(&(*(*(ppd)))))     --> 2d4
print &(&(&(&(*(*(ppd))))))  --> An lvalue (addressable object) is required.

					John Higley
					Tektronix, Inc.
					Component Engineering Group
					johnhi at teksce.SCE.TEK.COM



More information about the Comp.lang.c mailing list