The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 07-19-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,933
Considering that arrays are also pointers, there's two main differences.
  • Arrays are allocated space. The only reason function arguments get away with leaving the [] empty is they are passed a pointer, which the compiler assumes to have been allocated.
  • Arrays are constant. You can't change their base address.
Other than that, pointers and arrays are nearly identical.