Array of pointers vs Pointer of arrays…

28 11 2010
int* arr[8]; // An array of int pointers.
int (*arr)[8]; // A pointer to an array of integers
self explaining


taken from http://stackoverflow.com/questions/859634/c-pointer-to-array-array-of-pointers-disambiguation

 


Ενέργειες

Πληροφορίες

Υποβολή σχολίου

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Αλλαγή )

Twitter picture

You are commenting using your Twitter account. Log Out / Αλλαγή )

Facebook photo

You are commenting using your Facebook account. Log Out / Αλλαγή )

Connecting to %s




Follow

Get every new post delivered to your Inbox.