But how did the OP get the code to compile? I thought array sizes must be compile time constants?