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
Suppose you've decided to write a function template that you expect to use in many different source files. Suppose, further, tha
Sladkaya [172]

Answer:

The Solution to the given question can be defined as follows:

Explanation:

Please find the complete question in the attachment file.

In this case, the compiler will try to correct the model type by both the form we used when we try and call the method with both the appropriate form variable. It type of function. Consequently, unless the function in another file is specified, the compiler cannot locate the digital strategy. The point to note here is that only when this code is used, the template code shall be compiled.

The construct component will therefore be efficient so in this case, its connection stage would fail. An undefined connection to the feature <function name> can constitute a possible error in this case. It rules, therefore, address the construction project problem. Furthermore, the template function throughout the main program is generally recommended. It can be solved alternatively because parameters of a template like <function name><type> could be specified throughout the CPP file.

8 0
2 years ago
Match each network maintenance tool with the purpose that is most closely identified with that tool - Loopback plug - Protocol a
Artist 52 [7]

Solution :

  • Loopback plug --- confirm interface functionality

It is a connector that is used to diagnose the transmission problems.

  • Protocol Analyzer --- Analyze network traffic

It is used to capture and analyze the signals as well as data traffic.

  • Throughput tester - Measure link speed
  • Time Domain Reflectometer (TDR) - Determining the location of cable fault

It is used in determining the characteristics of the electrical lines by observing the reflected waveforms

  • Locating a specific cable - Toner probe

3 0
2 years ago
What is the answer to this binary?
USPshnik [31]
Relating to, using, or expressed in a system of numerical notation that has 2 rather than 10 as a base.
5 0
2 years ago
Select the correct answer.
Serga [27]

B: feasibility study

They are analyzing whether the project or application makes sense or is feasible, given the available resources, budget and projected monetary gains.

6 0
2 years ago
Which of the following statements does not explain the difference between safety stock
ioda

The statements does not explain the difference is that Cross-docking reduces inventory and storage space requirements, but handling costs and lead times tend to increase.

<h3>What is the difference between safety stock inventory and the cross-docking method?</h3>

safety stock inventory is known to be a kind of traditional warehousing systems that needs  a distributor to have stocks of product already at hand to ship to their customers.

But  a cross-docking system is one that is based on using the new and best input such as technology and business systems to produce a JIT (just-in-time) shipping method.

Learn more about safety stock Inventory from

brainly.com/question/18914985

6 0
2 years ago
Other questions:
  • Sam wanted to open a file that he saved yesterday. Which component inside the computer stores this file? the hard drive the fax
    13·2 answers
  • What is the purpose of this diamond shape in a flowchart?
    8·1 answer
  • The cord of a bow string drill was used for
    14·1 answer
  • If a user would like to modify margins to specific settings, users would need to select the _____ option.
    7·1 answer
  • Create a class named CarRental that contains fields that hold a renter's name, zip code, size of the car rented, daily rental fe
    13·1 answer
  • A user called to inform you that the laptop she purchased yesterday is malfunctioning and will not connect to her wireless netwo
    14·1 answer
  • A recommended cleaner for the bowls of coffee brewers is
    7·1 answer
  • Which object event is an indication that something has been created but not committed into the database?
    13·1 answer
  • P16 Consider the following network. ISP B provides national backbone service to regional ISP A. ISP C provides national backbone
    7·1 answer
  • Match the job task to the occupation that would perform it. 1. Research the causes and treatments of diseases physical scientist
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!