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
Write a code segment that prints the food item associated with selection. For example, if selection is 3, the code segment shoul
Ganezh [65]

<em>Missing Part:</em>

<em>Assume that the following variables have been properly declared and initialized: an int variable named selection, where 1 represents "beef", 2 represents "chicken", 3 represents "pasta", and all other values represent "fish"</em>

Answer:

if selection == 1:

    print("beef")

elif selection == 2:

    print("chicken")

elif selection ==3:

    print("pasta")

else:

    print("fish")

Explanation:

I've completer the question and the questin will be answered in python.

   

This checks if selection is 1. If yes, it prints the beef

<em>if selection == 1:</em>

<em>     print("beef")</em>

This checks if selection is 2. If yes, it prints the chicken

<em>elif selection == 2:</em>

<em>     print("chicken")</em>

This checks if selection is 3. If yes, it prints the pasta

elif selection ==3:

    print("pasta")

Any other input is considered java/

else:

    print("fish")

4 0
3 years ago
What are three good things and three bad things about the metal pewter
Setler79 [48]
Good things:
It is a solid material,NOT plated which makes it easily engravable.
does not tarnish or
discolor easily

Bad things:
It is not a high quality metal
It will melt at low temperatures,so do not get it around extreme heat.
It can damage easy if exposed to acids like lemon juice or vinager


4 0
4 years ago
20. The time for the disk arm to move the heads to the cylinder containing count
dolphi86 [110]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The answer is the seek time.

The seek time is the time for the disk arm to move the heads to the cylinder containing the desired sector.

5 0
4 years ago
Which of the following is not a scene mode?
tatiyna
I believe the answer is C) Model.
7 0
4 years ago
Read 2 more answers
Input and output devices provide means of communication between computers and outer world<br>​
abruzzese [7]

Answer:

See explanation

Explanation:

This question seem incomplete as what's required was not stated.

To answer this question, I'll assume it's a fill-in-the-gap question

The definition given above describes computer peripherals.

Peripherals is one of the links between a computer user and the computer itself.

Through peripherals such as keyboards, mouse, light pen , one can send input into the computer.

In the same vein, one can get outputs through peripherals such as the computer monitor, speakers, printers, etc.

3 0
3 years ago
Other questions:
  • Online companies typically have a(n) _________ on their websites that clearly states what information is collected from users an
    7·1 answer
  • If your computer system is not working correctly, you can use System Restore to return the ___________ ____________ to an earlie
    10·1 answer
  • Write a MATLAB script that prompts the user to input the following array by providing an example in the prompt: [2 4;6 3;5 9]. C
    15·1 answer
  • Your company leases a very fast internet connection and pays for it based on usage. You have been asked by the company president
    8·1 answer
  • What is employee Internet management (EIM) software?
    5·2 answers
  • PLZ HELP
    15·2 answers
  • C++ please
    8·1 answer
  • Which search phrase is the most effective to find out about the most popular pizza chains worldwide in 2019?
    9·2 answers
  • Why does elephant has thicker legs? Explain in terms of breaking stress?​
    15·1 answer
  • What type of attack occurs when the threat actor snoops and intercepts the digital data transmitted by the computer and resends
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!