포인터 선언

An integer

int a;

A pointer to an integer

int* pa;

A pointer to a pointer to an integer

int** ppa;

An array of ten integers

int a[10];

An array of ten pointers to integers

int* p[10];

A pointer to an array of ten integers

int (*a)[10];

A pointer to a function that takes an integer as an argument and returns an integer

int (*a)(int);

An array of ten pointers to functions that take an integer argument and return an integer.

int (*a[10])(int);

Categories: ,

Updated: