1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
VikaD [51]
3 years ago
8

Complete the below function which dynamically allocates space to a 3d array of doubles, initializes all values to 0, and returns

a pointer to the space.
1. double ***alloc3dArrayOfInts( int length, int width, int depth) {
2. double ***array3d = malloc(________ * sizeof(double **) );
3. for(int i=0; i< length ;i++) {
4. ________ = malloc(width * sizeof(double *) );
5. for(int j=0; j< ________;j++) {
6. __________ = malloc(depth * sizeof(double) );
7. }
8. }
9. return array3d;
10. }
Computers and Technology
1 answer:
MAVERICK [17]3 years ago
5 0

Answer:

Explanation:

1. double ***alloc3dArrayOfInts( int length, int width, int depth) {

2. double ***array3d = malloc(length * sizeof(double **) );

3. for(int i=0; i< length ;i++) {

4. array3d[i] = malloc(width * sizeof(double *) );

5. for(int j=0; j< width;j++) {

6. array3d[i][j] = malloc(depth * sizeof(double) );

7. }

8. }

9. return array3d;

10. }

You might be interested in
9. The monumental failure of Atari's E.T Extra-terrestrial was, among other things, due to the fact that ______________
nlexa [21]

Answer:

c

Explanation:

5 0
3 years ago
Collaborative devices are web and mobile applications that allow users to share files, meet virtually in real-time, and assign t
const2013 [10]

Answer:

true

Explanation:

because collaborative devices are made to make work much productive and easier within a group. it's true since the following statements can result to productivity

6 0
3 years ago
Read 2 more answers
What responds to both visual appeal and functional needs? (1 point) A.) applied art B.) performance art C.) fine art D.) visual
d1i1m1o1n [39]

Answer:

a

Explanation:

6 0
3 years ago
Paul is playing a game when his computer shuts down unexpectedly. Paul has noticed recently that his fans are running very loud.
Elis [28]

Answer:

there is a lot of heat in his computer he should let the computer rest for some time and then use it again

5 0
4 years ago
Which enables users to try an application before they commit to buying it?
adelina 88 [10]

Answer:

shareware

Explanation:

It is the shareware, which is available for free for a certain period, and after that, the actual fee is charged for continued usage. The public domain is free from copyright, patent or trademark laws, and is the public property. The open-source is the free code of software that is available with code for the whole developer community. And it is shared among all the developers. And the developer can be anybody. The freeware is the software that is provided free of cost by the publisher. And there is no set of rights, licenses or EULA that governs its distribution, and each publisher frames his own set of rules for the usage of the freeware.

8 0
3 years ago
Read 2 more answers
Other questions:
  • Choose the type of critical thinking demonstrated in the example:
    8·2 answers
  • The disk drive is a secondary storage device that stores data by _____ encoding it onto a spinning circular disk.
    14·1 answer
  • Which of the following is the final fate for average sized stars?
    12·1 answer
  • What will be displayed after the following statements execute? int funny = 7, serious = 15; funny = serious % 2; if (funny != 1)
    10·2 answers
  • To display a pop-up form for a control, such as account number in a datasheet create a user interface (UI) macro that is associa
    12·1 answer
  • Which act will the person be punished by trying to obtain personal information employees illegally?
    11·1 answer
  • 2. What is software conflict?<br>​
    11·1 answer
  • Write a C program that counts the number of vowels in a word. The C program reads words from an input file and then stores in an
    13·1 answer
  • How to assign some object key values to other name react const.
    7·1 answer
  • Yusuke has been a fan of online games for as long as she can remember. She particularly loves the role-playing games that allow
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!