answersLogoWhite

0


Best Answer

A union is an aggregate of members that share the same memory address. The size of a union is determined by the largest member.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How memory space is occupied by union variables in C programming language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why should variables be declared in a programming?

a variable should in a programming because as the definition implies it is a named location in the memory where all the data is to be stored


0's and 1s is Low-level programming language?

it is called binary code and this is the lowest level programming language you can track it by looking at a switch or a register in memory


What are arrays in gwbasic?

These are memory locations to store a vast amount of data. Usually a limited no. of variables are handled while programming in GW Basic. Sometimes you need to bother a plenty of variables and this colud make programming tiresome. To save yourself from a lot of manual inputs, Arrays can help you.


Why Java is called high level language?

Low level computer languages require the programmer to know the machine code or assembler language for the computer CPU targeted including low-level functions like memory allocation and memory deallocation.A high-level programming language is a programming language with strong abstraction from the details of the computer.The Java programming language is not only a high-level language, but is also machine and platform independent in that the same compiled byte-code can run on different platform and CPUs without recompiling.


What features must a programming language and its runtime environment provide in order to support automatic memory management?

garbage collection

Related questions

What are variables in programming?

In computer programming, variables refer to a particular location in the memory that holds a value. Variables are equivalent to their assigned values.


Can ram contain variables?

Sort of. Actually the RAM contains the values of the variables. Whenever you define a variable in a programming language, when compiled, this variable is converted to a memory (i.e., RAM) location. In interpreted languages, the RAM usually also contains a list of variables, with their names and types - although details vary, depending on the language.


Why should variables be declared in a programming?

a variable should in a programming because as the definition implies it is a named location in the memory where all the data is to be stored


What are pointers in c programming language?

Pointers are variables that hold the address to a memory location. It makes copying/assignment very efficient, since it eliminates the need for copying entire memory blocks...only the address is copied. This is useful for example for function arguments.


0's and 1s is Low-level programming language?

it is called binary code and this is the lowest level programming language you can track it by looking at a switch or a register in memory


Sizeof operator to determine the memory occupied by structure variables and pointers?

C and C++ both include the built-in sizeof() operator to do just that.


What are variables and how are they used in programming?

Variables are named memory locations that may be used to store and retrieve values for use later on in a program. They are like memory locations you have in your brain to remember certain things. Variables may (in general) store a single value at a time, but may be erased with other values (one at a time).


In object oriented programming when does memory for the class is allocated and why?

While it depends on the specific language, memory for a class is usually allocated when an object of that class is created.


What are arrays in gwbasic?

These are memory locations to store a vast amount of data. Usually a limited no. of variables are handled while programming in GW Basic. Sometimes you need to bother a plenty of variables and this colud make programming tiresome. To save yourself from a lot of manual inputs, Arrays can help you.


What is the memcpy library used for in computer programming?

The memcpy library is used in computer programming to copy the value of numbers from a source to the memory block destination. Memcpy is frequently used in the C++ programming language.


What is memory variables?

Hard to tell, variables usually are in the memory... be more specific.


How does a computer programer idenify a particuler part of the memory in a computer program?

Each part of the computer memory - each byte, in modern computer architectures - has an associated address, a number. Usually the programmer will be programming in a high-level language, which, instead of accesing memory directly by its address, uses a symbolic name - called a variable - to refer to this address. It is up to the programmer to give variables their names. The programmer should try to keep these names meaningful. If the programming language allows longer names, don't abbreviate variable names to one or two letters.