prev up next   top/contents search

comp.lang.c FAQ list · Question 2.17

Q: If an array name acts like a pointer to the base of an array, why isn't the same thing true of a structure?


A: The rule (see question 6.3) that causes array references to ``decay'' into pointers is a special case which applies only to arrays, and reflects their ``second class'' status in C. (An analogous rule applies to functions.) Structures, however, are first class objects: when you mention a structure, you get the entire structure.


prev up next   contents search
about this FAQ list   about eskimo   search   feedback   copyright

Hosted by Eskimo North