quarta-feira, 26 de janeiro de 2011

Ajuda com declarações em C

# apt-get install cdecl
$ cdecl
Type `help' or `?' for help
cdecl> explain int* arr1[8];
declare arr1 as array 8 of pointer to int
cdecl> explain int (*arr2)[8]
declare arr2 as pointer to array 8 of int
cdecl> explain int *(arr3[8])
declare arr3 as array 8 of pointer to int
cdecl>
cdecl> declare x as pointer to function(void) returning pointer to float
float *(*x)(void )
cdecl>


Daqui:
C pointer to array/array of pointers disambiguation - Stack Overflow

Sem comentários: