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
amm1812
3 years ago
5

When should you use a union type component in a structured variable?

Computers and Technology
1 answer:
Eduardwww [97]3 years ago
7 0

Answer:

The answers to 1st question and part 2A is given. However, the 2B is not given complete and thus cannot be answered.

Explanation:

UNION is a keyword used in C Language to have a commonly shared memory that can be used by multiple elements. It is a data-type that allows different data types to use the same shared memory location.

Importance: If you want to minimize the use of memory by sharing it between different datatype variables, then use UNION. For Ex. Let's suppose I want to use 2 variables a and b of type char and int respectively. Now, suppose int takes memory space of 2 bytes and char takes 1 byte then the total amount of memory needed = 2 + 1 = 3 Bytes. But, we want to first make use of a, and once done, we want to declare variable b. We can limit the memory use by declaring a memory space of 2 bytes (max of a and b). First, we can use this space to store the int variable and when done with it, we can use it to store the char variable.

PART 2A

typedef struct{

  int partNum;

  char partName[25];

} partin;

#define Partin partin

You might be interested in
A Windows user is attempting to exit a locked up desktop application that is not responding to mouse or keyboard input. Which of
Kamila [148]

Answer:

Open Task Manager and end the process associated with the application.

Explanation:

When using a computer installed with the Windows Operating system and an application is not responding to the mouse or keyboard input, you can end such application process without exiting other open applications by opening the task manager using the key combinations "CTRL + ALT + DEL". This would open the Task Manager showing all the open application and then you can end the process associated with the application that is not responding.

3 0
3 years ago
A circuit has a resistance of 680 ohm and a current of 0.025 A. What is the voltage of the circuit
uysha [10]
V = IR

V = 680 * 0.025

Therefore

V = 17


If this is an exam-type question, don't forget to include your units too!

<span>Ω Ohms for Resistance
</span>V Volts for Voltage
A Amperes for Current

5 0
3 years ago
Using the flowchart below, what value when entered for Y will generate a mathematical error and prevent our flowchart from being
nexus9112 [7]

Answer:

The answer is the last choice that is "None of these values will produce a mathematical error".

Explanation:

In this question, the above given choice correct because neither of the flowchart procedures could trigger a mathematical error. This error could not be induced by multiplication, addition and subtraction, and the only division by 15. It is the only divide by 0, that's why the above flowchart will produce a mathematical error.

4 0
3 years ago
Briana designs a science fair experiment where she drops a basketball, tennis ball and golf ball from three different heights. S
Nat2105 [25]
A semi-circle is a half circle. Find the area of a semi-circle with a radius of 8.6 meters.

The area of the semi-circle is
3 0
3 years ago
How do u stop loneliness
Ainat [17]

Answer:

U can make urself take parts in activities

5 0
3 years ago
Read 2 more answers
Other questions:
  • Write a method called average that accepts two integer parameters and returns their average as a floating point value: Overload
    15·1 answer
  • Write a program that opens a text le called quiz.txt for reading. This le contains a single line with a student's rst name then
    15·1 answer
  • A family preservation program director helps design a study that evaluates the effectiveness of her program to keep children liv
    12·1 answer
  • Which action should be done throughout the mail merge process
    14·2 answers
  • ___ allow users to select controls by keyboard shortcuts. (Points : 3) Alternative keys
    13·1 answer
  • Why is it preferable to code web pages in HTML format?
    10·2 answers
  • Can anyone answer this ​
    12·1 answer
  • You are the IT administrator for a small corporate network. The network uses a DHCP server for IP address configuration for most
    13·1 answer
  • What is the purpose of protocols in data communications?.
    6·1 answer
  • Identify some possible delivery systems for video programs
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!