Initialization of pointer to array


ROOT version 5.08

There is a strange problem with complex declarations, for example if I declare a pointer to array

int (*p)[20]

and try to initialize it

int (*p)[20] = new int[10][20];

int arr[20] = {0};

int (*p)[20] = &arr;

p is always 0.

CINT does yet support properly a pointer to an array (See CINT Limitations).
If you need this construct, please compile your code (using ACLiC).