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]
3 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]3 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
How would you describe<br> "analogous color harmony" to a six year old?
Fynjy0 [20]

Answer:

Analogous colours are groups of three colours that are next to each other on the colour wheel, and a tertiary. ... An analogous color scheme creates a rich, monochromatic look. It is best used with either warm or cool colors, creating a look that has a certain temperature as well as proper color harmony.

Explanation:

3 0
3 years ago
Changeover means that ____. (select all that apply)
pogonyaev
Hi!

I'm quite sure the answers are B and C.
5 0
4 years ago
Read 2 more answers
How do you ask someone for help?
kakasveta [241]
It all depends what you need from that certain person, like maybe you're failing a class and need help from a friend who is better than you at that class, you could say, "hey look man i'm really struggling in this class. Could you help me?" just be straight up with them. or you could message them
5 0
3 years ago
Explain different users of computer in briefly?​
goldfiish [28.3K]

Answer:

The question is invalid; there are many types of computer user. Why on earth do you think there are five?

From the top of my head.

Casual- someone at home browsing the web, reading email.

IT Consultant. Advising people.

Software developer- writing software

Secretary - manages email for a company

Academic. Writing research papers.

Monitors. Monitor a computer system.

That’s six off the top of my head. There are probably a dozen more. So why do you think there are five?

3 0
2 years ago
Outcomes resulting from using incorect requirement specification during system development​
Vlada [557]

Answer:

please give full understandable question buddy

5 0
3 years ago
Other questions:
  • How can I sent a message?
    13·1 answer
  • Which of the following STEM discoverers developed a new type of computer hardware?
    11·1 answer
  • You work in the Accounting department and have been using a network drive to post Excel workbook files to your file server as yo
    15·1 answer
  • Write a while loop that adds the first 100 numbers (from 1 to 100) together. To do so, use a while loop that continues while the
    12·2 answers
  • . How is using 0 / 1 or true / false in specifying digital an abstraction?
    11·1 answer
  • 2. How does the internet give us the ability to communicate?
    15·1 answer
  • Assume the user responds with a 3 for the first number and a 5 for the second number.
    13·1 answer
  • Escribe 10 ejemplos de lo que consideras un byte
    5·1 answer
  • LCD, EL and gas-plasma are types of flat-panel screens.<br> True<br> False
    13·1 answer
  • Organizations can face criminal or civil penalties for being ______ in protecting their sensitive data.
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!