From: Thomas Steudten <alpha@steudten.com>
To: km <km@mrna.tn.nic.in>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: pointer notation
Date: Tue, 28 Oct 2003 11:17:28 +0100 [thread overview]
Message-ID: <3F9E4238.3020807@steudten.com> (raw)
In-Reply-To: <20031028094205.GA4228@mrna.tn.nic.in>
Hi
(p)->next and p->next are the same. I think you saw a sourcecode, where
maybe p is replaced by a macro like #define p ptr->a.
However the priority in c is "()" first, then "->".
> Hi all,
> how different is the notation
> (p)->next (what do the parenthesis around the pointer signify ? )
> different from
> p ( while p is a pointer)
--
Tom
LINUX user since kernel 0.99.x 1994.
RPM Alpha packages at http://alpha.steudten.com/packages
Want to know what S.u.S.E 1995 cdrom-set contains?
next prev parent reply other threads:[~2003-10-28 10:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-28 9:42 pointer notation km
2003-10-28 10:17 ` Thomas Steudten [this message]
2003-10-28 12:00 ` Luciano Moreira - igLnx
2003-10-28 17:46 ` km
2003-10-28 18:40 ` Mike Pastore
2003-10-28 18:46 ` Jeff Woods
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=3F9E4238.3020807@steudten.com \
--to=alpha@steudten.com \
--cc=km@mrna.tn.nic.in \
--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).