![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 22.01.2021 19:30 Duriiee
Can anyone give a good explanation about my C++ homework? Thank you!
We've seen that C++ stores statically-allocated multidimensional arrays in first-dimension-major order. Suppose, instead, that C++ stored them using last-dimension-major order (so, the opposite) instead. For example, suppose we had this statically-allocated array:
int a[3][2][2];
then suppose that its elements were stored contiguously in memory in exactly the following order — which, again, is different from how C++ normally does it.
a[0][0][0]
a[1][0][0]
a[2][0][0]
a[0][1][0]
a[1][1][0]
a[2][1][0]
a[0][0][1]
a[1][0][1]
a[2][0][1]
a[0][1][1]
a[1][1][1]
a[2][1][1]
If that was the rule in C++, then which of the following function declarations would we expect to be illegal? For each one that you would expect to be illegal, explain in a sentence or two why. (Note that I'm asking this question generally, so the answer is never going to be "Because the capacity of x is not the same as the capacity of a in your example.")
void func1(int x[10][3])
void func2(int x[][10][20])
void func3(int x[30][])
void func4(int x[40][][][])
void func5(int x[][10][])
void func6(int x[10][][20])
![ansver](/tpl/images/cats/User.png)
Answers: 3
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 21:00
Describir textbook icon_person mira los dibujos y describe lo que está pasando. usa los verbos de la lista.
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 21:30
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 08:00
Which argument is not a valid filter? does not equal this quarter filter by cell color all of these are valid filter arguments.
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 21:40
language consists of basic components, and they are called a. 3; mental images, concepts, and speech b. 2; language acquisition and linguistic relativity c. 3; heuristics, algorithms, and analogies d. 4; phonemes, morphemes, syntax, and semantics e. 2; words and grammar
Answers: 3
You know the right answer?
Can anyone give a good explanation about my C++ homework? Thank you!
We've seen that C++ stores sta...
Questions
![question](/tpl/images/cats/biologiya.png)
Biology, 07.04.2021 08:40
![question](/tpl/images/cats/mat.png)
Mathematics, 07.04.2021 08:40
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/en.png)
English, 07.04.2021 08:50
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 07.04.2021 08:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
History, 07.04.2021 08:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/health.png)
Health, 07.04.2021 08:50
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 07.04.2021 08:50
![question](/tpl/images/cats/mat.png)
Mathematics, 07.04.2021 08:50