Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
Size of matrix
If I globally declare a 2D matrix, say, int MAT[ ][ ]; then can I set the row size and column size of MAT later on in some other function? The required row and column number varies for different cases. I could just declare it as MAT[100][100]; because row,column is within 100. But I want to save memory.
1 Antwort
+ 1
Array size can't be changed dynamically.