News for hackers. Stuff that matters.
Re:Linus on compiler warnings and code reviews by doppelganger27 on Wednesday September 23, 2015 @04:34PM (#10267980)
There is no strict difference between a pointer and an array (of any size) at run time in C. Arrays are just pointers to a section of memory, and it's up to the programmer to communicate how big that section is.
Re:Linus on compiler warnings and code reviews by 36erhefg on Wednesday September 23, 2015 @04:46PM (#10268060)
There are whole separate chapters describing arrays and pointers in the C Standard. This is by definition a strict difference. You should read those chapters and please stop spreading this beginners misconception of C.
[deleted]
Re:Linus on compiler warnings and code reviews by 36erhefg on Wednesday September 23, 2015 @05:02PM (#10268196)
In any case, there are significant differences at runtime as well. Look at the link I posted at your other comment.