Unexpected behavior of gcc on pointer dereference & increment

Tomas Bortoli tomasbortoli@gmail.com
Fri Sep 1 16:35:30 GMT 2023


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


More information about the Gcc mailing list