[Bug c/57853] pointer arithmetic on arrays
brodhow at sbcglobal dot net
gcc-bugzilla@gcc.gnu.org
Tue Jul 12 15:07:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57853
--- Comment #16 from this is me <brodhow at sbcglobal dot net> ---
Andrew Pinski:
Will you delete this Bug 57853 web page for me?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57853
I can't hired!
Howard
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57853
>
> Andrew Pinski <pinskia at gcc dot gnu.org> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|UNCONFIRMED |RESOLVED
> Resolution|--- |INVALID
>
> --- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>> "*++arr[0][0]" is not supposed to change the array arr!
> At this point I am going to say you don't know C and should ask on a C mailing
> list learning C.
>
> *++arr[0][0] does the following:
> ++arr[0][0]
> And then deferences that value (which turns into 's').
>
>
> If you only want (arr[0][0])[1] then use that or *(arr[0][0]+1) rather than ++.
>
More information about the Gcc-bugs
mailing list