Tuesday, April 3, 2018

c++ - Why int array[][20]?

In ReadVector() why do I have to write int a[][20]? What is the purpose of [20]. Why can't I write a[][]?




int a[20][20 ], n,m;

int ReadVector(int a[][20],int n,int m){
for (int i=0; i for (int j=0; j cout<<"a["< cin>>a[i][j];
}

return *a[20];`

No comments:

Post a Comment

plot explanation - Why did Peaches&#39; mom hang on the tree? - Movies &amp; TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...