public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Unexpected behavior of gcc on pointer dereference & increment
@ 2023-09-01 16:35 Tomas Bortoli
  2023-09-01 16:50 ` David Edelsohn
  2023-09-01 16:54 ` Paul Koning
  0 siblings, 2 replies; 3+ messages in thread
From: Tomas Bortoli @ 2023-09-01 16:35 UTC (permalink / raw)
  To: gcc

Hi,

I recently discovered that the following C statement:

pointer++;

is semantically equivalent to the following:

*pointer++;

Is this due to operators' priority? To me, that looks weird.


Thanks in advance,
Tomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-01 16:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-01 16:35 Unexpected behavior of gcc on pointer dereference & increment Tomas Bortoli
2023-09-01 16:50 ` David Edelsohn
2023-09-01 16:54 ` Paul Koning

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 read-only IMAP folder(s) and NNTP newsgroup(s).