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
PSYCHO15rus [73]
4 years ago
5

Suppose a four-dimensional array has been declared within the scope you are currently executing. You, however, want to refer to

information about the size of each dimension not by their values or symbolic constants, but rather by formulas. Using only the sizeof operator and the name of the array, a, write expressions that will yield each of the array dimensions, in left-to-right order, that is:
a. the first dimension (which is the same as the number of 3-dimensional (top-level) elements in the array)
b. the second dimension (which is the number of 2-dimensional elements in each top-level element)
c. the third dimension (the number of 1-dimensional arrays in each 2-d element)
d. the fourth dimension (the number of data items in each 1-dimensional array)

Computers and Technology
1 answer:
Mariulka [41]4 years ago
4 0

Answer:

A ) Sizeof(arr)/sizeof(arr[0])

B) Sizeof(arr[0])/sizeof(arr[0][0])

C) Sizeof(arr[0][0])/Sizeof(arr[0][0][0])

D) Sizeof(arr[0][0][0])/Sizeof(int)

Explanation:

using only the size of operator and the name of the array to write an expression that will yield each of the array Dimensions in left-to-right order

A ) Sizeof(arr)/sizeof(arr[0])

B) Sizeof(arr[0])/sizeof(arr[0][0])

C) Sizeof(arr[0][0])/Sizeof(arr[0][0][0])

D) Sizeof(arr[0][0][0])/Sizeof(int)

attached below is the handwritten copy

You might be interested in
What are the task performed by window media player<br> ​
OLEGan [10]

Answer:

Windows Media Player (WMP) is a media player and media library application developed by Microsoft that is used for playing audio, video and viewing images on personal computers running the Microsoft Windows operating system, as well as on Pocket PC and Windows Mobile-based devices.

4 0
2 years ago
Is technology more than applied science?
Paraphin [41]
Yes because science is natural and technology is man made
8 0
3 years ago
What are the two basic literary forms?
Korolek [52]
Fiction and nonfiction
6 0
3 years ago
Under which menu option of a word processing program does a callout appear?
Juli2301 [7.4K]
A callout is a type of text box that also includes a line for pointing to any location on the document. A callout appears under the SHAPES <span>menu of the word processing program. The answer that completes this statement is the word "shapes". Hope this answers your question. </span>
7 0
3 years ago
Please help me!! i’m so confused on this
DaniilM [7]
D I really hopes this helps
8 0
2 years ago
Other questions:
  • Max magnitude Write a method maxMagnitude() with two integer input parameters that returns the largest magnitude value. Use the
    13·1 answer
  • By default, table headers will include the arrows shown in the table. What menu option(s) are available when this arrow is click
    8·2 answers
  • which of the following is not an operating system? A. leopard B. linux C. firefox D. windows
    11·2 answers
  • if you want to presents slides to fellow sudents or co-workers witvh productively software should you use to create them?
    6·1 answer
  • Technician A says that wheel speed sensors are a highly probable cause of illuminated EBC warning lamps. Technician B says that
    10·1 answer
  • Which of the following is an example of the rewards &amp; consequences characteristic of an organization?
    10·2 answers
  • Which of the following is not a key component of a structure?
    6·1 answer
  • Anyone know how to fix black screen of death on computer​
    6·1 answer
  • What are the common camera hazards? When might you encounter these hazards in your life, and what do you plan to
    14·1 answer
  • What are 15 importance of information processing cycle?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!