Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly Language > Re: ch 4
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 5069 of 5097
Post > Topic >>

Re: ch 4

by ronaldsorrell2005@[EMAIL PROTECTED] Jul 1, 2008 at 07:50 AM

On Jun 29, 12:11=A0am, Frank Kotler <fbkot...@[EMAIL PROTECTED]
> wrote:
> ronaldsorrell2...@[EMAIL PROTECTED]
 wrote:
>
> ...
>
> > this program is found in 4.7.3 and the lesson is pointer constants and
> > pointer =A0constants expressions.
>
> Ah! Apparently the chapters are numbered differently in the Linux
> version, too...
>
> 1.7.3 Pointer Constants and Pointer Constant Expressions
>
> HLA allows two literal pointer constant forms: the address-of operator
> followed by the name of a static variable or the constant zero. In
> addition to these two literal pointer constants, HLA also sup****ts
> simple pointer constant expressions.
>
> The constant zero represents the NULL or NIL pointer, that is, an
> illegal address that does not exist.
> ...
>
> Ah! What we've got is the "address-of operator followed by the name of a
> static variable" form of pointer constant, not the "illegal address"
> form. The zero is the contents of the address "&b". We're setting the
> constant "pb" to the (non-zero) address... plus one. So the constant is
> the address of the 1, and that's what we see when we run the program.
> Becoming any clearer?
>
> Best,
> Frank

yes after playing with it and reading that section  over and over
again, but what has helped the most was the comments posted. this last
one put it all in full veiw. Now I will need to go over it again
tonight but I am sure that I have it now.

Thanks every one for your assistance.

see ya, test professor
 




 1 Posts in Topic:
Re: ch 4
ronaldsorrell2005@[EMAIL   2008-07-01 07:50:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 20 4:18:59 CDT 2008.