| Physics and Astronomy | 
Back to top
Common mistakes with structures
 In the incorrect example on the left we are passing part of a structure (in this case the address of an array) to the function. We should be passing a pointer to the whole structure.  |