c - What is meant by this cast? (int (*)[10]) -


i stumbled across following cast:

(int (*)[10]) 

in opinion, "pointer pointer int". let's assume following array declaration:

int array[10]; 

then assume &array of type (int (*)[10])

is correct?

in opinion, "pointer pointer int".

no. pointer array of 10 ints.

then assume &array of type (int (*)[10])

yes. assumption correct. &array address of array array , of type int (*)[10].


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -