answersLogoWhite

0

Where dynamic variables are stored?

Updated: 8/19/2019
User Avatar

Wiki User

13y ago

Best Answer

Dynamic variables are stored in a memory heap allocated to them at run time.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Where dynamic variables are stored?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Where auto variables are stored?

Auto variables are stored on the stack alongside all other local variables.


Difference between dynamic and static memory allocation?

Static memory allocation is memory allocated on the "stack" and cannot be resized after the initial allocation, while dynamic memory allocation is memory allocated in the "heap", and can be dynamically expanded and shrunk as necessary.


Where does Local Variables get stored in?

Stack.


Is global variables are stored in registers?

They is not.


Local Variables will get stored in?

Stack.


What are environment variables?

Environment variables are a set of dynamic values that can affect the way running processes will behave on a computer.


Why are variables important to science?

Because mathematical formulas can only describe dynamic changes if some elements (variables) vary in relation to other variables.


Where the static variables are stored?

initialize static variables are stored in data segment where uninitialized static variables are stored in BSS(block storing for Symbol) it also a part of data segment exp static int i=10;//stored in data segment static int i;//stored in BSS (uninitialized data segment) Thanks NAvin


Where local variables are stored in c?

On the stack.


What are the different methods of storing data in a program?

Program data can be stored in the program's data segment, on the stack or on the heap. Constants, static variables and global variables are always stored in the program's data segment. Local variables are always stored on the stack. Dynamic variables are always stored on the heap. User data is typically stored in files, but those files could exist literally anywhere, such as a local hard-disk drive, a file-server or "the cloud". However, data must be brought into working memory in order to operate upon it. Small amounts of data can be allocated within the data segment via static variables but generally you will use the heap. If the data is too large to fit into working memory all at once, use one or more temporary files on one or more local hard-disk drives and pull in what you need as and when you need it.


What is the difference between static and dynamic variables?

Static variables (should) remain the same e.g. temperature of a water bath, k constant of a particular spring. Dynamic variables change as the experiment progresses e.g. air temperature and pressure, amount of natural light.


Global variables are stored in?

Main memory (RAM).