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.
[ Parent
| on HN ]
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]