About:How to write the declaration of pointers and references rightly.

Example1:

howtowriteadeclarationforareferencetoanarrayof10integers.

(&ref)areferenceto
[10]anarrayof10
intintegers

intv[10],(&ref)[10]=v;

Example2:

Let'stryanotherone:

v[10]anarrayof10
(*)pointersto
(int)functionwhichtakesint
boolandreturnsbool.

bool(*v[10])(int);

你可能感兴趣的:(reference)