News for hackers. Stuff that matters.
Re:Are pointers and arrays equivalent in C? (2009) by userbinator on Saturday March 21, 2015 @12:35PM (#9243215)
I like to think of them as being different and the equivalence - in some cases - only comes from what is known as the "array-pointer-decay" semantic:

http://www.lysator.liu.se/c/c-faq/c-2.html

This is why &a+n is not equivalent to a+n, something that a surprisingly large number of "C pointer tutorials" seem to get wrong.

There are no comments on this comment yet.