C++

Topic: Array

How can double dimensional arrays be dynamically initialized in C++?

example of how to dynamically initialize double dimensional arrays:<br><br>int num[2][3] = {34,32,30,24,22,20};<br><br>num[1][1] = 34<br><br>num[1][2] = 32<br><br>num[1][3] = 30<br><br>num[2][1] = 24<br><br>num[2][2] = 22<br><br>num[2][3] = 20<br>

Browse random answers: