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
Lerok [7]
2 years ago
11

Consider the following program where the zu format specifier is used to display as an integer the result of sizeof. #include #in

clude typedef union { int *i1; int *i2; }U; int main() { U temp; int i = 50; temp.i1 = &i; printf("%zu and %d\n", sizeof(temp), *(temp.i2)); return 0; } What is the output of the program above? Note in the choices below indicates output that isn't any of the literal values in the code above.
Computers and Technology
1 answer:
Galina-37 [17]2 years ago
4 0

Answer:

4 and 50

Explanation:

To answer the question above, we are to first of all consider the size of union will be the max size of datatype in union data. I.E.

sizeof(int *) is 4 bytes

so, sizeof(U) = sizeof(temp) is 4

and we saved 50 in temp.i1. so, 50 we can access 50 from temp.i2 as well

so, output is 4 and 50

You might be interested in
HEPME <br> ZOOM<br> IN <br> STOP<br> GIVIJG<br> ME <br> LINKS <br> !!
aniked [119]
Maybe it will help if you would give more details. But maybe motivational speeches
4 0
2 years ago
What is a file and where can we make use of a file?​
Gekata [30.6K]

Explanation:

<h3>A file is an object on a computer that stores data, information, settings, or commands used with a computer program. On a computer there are three types of files, application files, data files, and system files.</h3>

<h2>hope it helps. </h2><h2>Stay safe healthy and happy.</h2>
8 0
2 years ago
Two students are discussing the flow of electricity. Student A says that voltage is a measure of the amount of electron flow in
aivan3 [116]

The answer is C: Both of the two students are correct.

Voltage in very simple terms is what makes electric charges move. It is that push or force that causes charges to move in an electrical conductor. Thus, student A is correct since voltage is a specific measure of potential energy that exists and is always relative between two points. On the other hand, power is the rate, per unit time, at which electrical energy travels. Electrical power (P) is the product of both voltage and current and not either one separately. It is a function of voltage and current. Thus, student B is also correct.

3 0
3 years ago
Letter only ^_____^!
vagabundo [1.1K]

b serves as food for the yeast

4 0
3 years ago
What is the value of the variable result after these lines of code are executed?
notsponge [240]

Answer:

5

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • give two main reasons that should be considered when preparing and deploying a functional restoral scenario.
    5·1 answer
  • Describe three general methods for passing parameters to the operating system.
    6·1 answer
  • What's the screen that displays results from typing text, performing calculations, or running programs?
    11·1 answer
  • What tasks do most operating systems perform?
    15·1 answer
  • Someone asks you for help with a computer that hangs at odd times. You turn it on and work for about 15 minutes, and then the co
    7·1 answer
  • An anagram is a word or a phrase made by transposing the letters of another word or phrase; for example, "parliament" is an anag
    7·1 answer
  • Create a Python program that: Allows the user to enter a person's first name and last name. The user should be able to enter as
    12·1 answer
  • What is the next line? &gt;&gt;&gt; myTuple = [10, 20, 50, 20, 20, 60] &gt;&gt;&gt; myTuple.index(50) 3 1 4 2
    14·2 answers
  • which term describes the layer of software that resides between the virtual operating system and the physical hardware it runs o
    5·1 answer
  • Another name of computer program is
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!