Sure, always #define static array sizes. This should be a programmer habit anyway. You'll also need it for loops on that array.

#define MYLENGTH 20

short array[MYLENGTH];

...

int arraysize = MYLENGTH*sizeof(short);