Tuesday, 3 April 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

casting - Why wasn&#39;t Tobey Maguire in The Amazing Spider-Man? - Movies &amp; TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...