[SOLVED] How to create 100 Arrays?

Hi guys, I wanna know how to create 100 arrays without creating one by one.
Thanks in advance :D
Last edited on
array of arrays is a thing :)

int i[100][const_your_size];
1
2
3
4
5
6
const std::size_t ARRAY_SZ = 50 ;
using array_type = int[ARRAY_SZ] ; // type alias for array of ARRAY_SZ int

// create one hundred arrays
const std::size_t NUM_ARRAYS = 100 ;
array_type many_arrays[NUM_ARRAYS] = {} ; // initialised to all zeroes 
Thanks @jonnin and @JLBorges for help. :D
Topic archived. No new replies allowed.