From: Christoph Bussenius <mail@der-pepe.de>
To: Christoph Bussenius <busseniu@cip.physik.uni-muenchen.de>
Cc: Fabio Andres Miranda <fabiomiranda@racsa.co.cr>,
linux-c-programming@vger.kernel.org
Subject: Re: Pointers to int
Date: Fri, 28 Oct 2005 18:09:20 +0200 [thread overview]
Message-ID: <20051028160920.GF6673@opaque.pepe> (raw)
In-Reply-To: <20051028160530.GE6673@opaque.pepe>
On Fri, Oct 28, 2005 at 06:05:30PM +0200, Christoph Bussenius wrote:
> As postincrement (++) has higher priority than dereference (*), p++ is
> what will be evaluated first. So p will be incremented by the size of
> an integer (probably 4). After that, p will point to the second integer
> of the array, i. e. array[1]. Now you use * to access that very
> location and store j-8 there.
Sorry, I was mistaken. As the result of a POSTincrement is the value
before incrementing, the result will be like:
*p = j-8;
p++;
Christoph
--
``There's no dark side of the moon, really
Matter of fact, it's all dark''
--Pink Floyd
next prev parent reply other threads:[~2005-10-28 16:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-28 13:19 Pointers to int Fabio Andres Miranda
2005-10-28 16:05 ` Christoph Bussenius
2005-10-28 16:09 ` Christoph Bussenius [this message]
2005-10-29 15:44 ` Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051028160920.GF6673@opaque.pepe \
--to=mail@der-pepe.de \
--cc=busseniu@cip.physik.uni-muenchen.de \
--cc=fabiomiranda@racsa.co.cr \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).