This might sound crazy but I was wondering if it is possible to make a program declare n
number of arrays of the type array[]
in a loop using C/C++. For example, sample this pseudo-code:
input int _n_
run loop for _n_ times such that:
declare _array1[]_
declare _array2[]_
.
.
declare _array'n'[]_
So the problem here is two-fold:
- Declare variable length arrays
- Declare a variable number (i.e. n number of) such arrays.