I am reading two values from a text file and saving them into an array, lets call it array1. Now, is it possible to initialize a 2D array using the elements of arrays1 ? (i.e. char array2 [array[0]][array[1]]; )
I already tried this and the program started acting weird. I also tried moving the values of the elements in an integer and then use the integer as the array size. This method did not work either.
Any suggestions of how I can implement this please?