News for hackers. Stuff that matters.
Re:Are pointers and arrays equivalent in C? (2009) by krylon on Saturday March 21, 2015 @03:28PM (#9243897)
No, it does not. That is why pointers are so important in C. But to a newbie, the difference between a local variable and a pointer to it can be rather confusing, and the fact that with arrays this difference becomes rather blurry unless one has a good mental model of what the compiler turns your code into, makes it even more confusing.

Given that some data structure such as linked lists are highly inconvenient or even impossible to implement without dynamic memory management, one is pretty much bound to writing code that is either primitive (not always a bad thing) or horrible to look at (and maintain) until one understands pointers.

There are no comments on this comment yet.