In C you may use Variable Length Arrays (VLA). So you can declare one three dimensional array the left dimension of which will specify the number of two dimensional arrays.
For example
#include <stdlib.h>
int main( int argc, char * argv[] )
{
// some check that the command line parameter was specified
int a[atoi( argv[1] )][5][5];
}