answersLogoWhite

0

Global variables are stored in

Updated: 8/19/2019
User Avatar

Wiki User

12y ago

Best Answer

Main memory (RAM).

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

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

Is global variables are stored in registers?

They is not.


What is the storage allocation and scope of global extern static local and register variables?

AnswerLocal Variables are stored in Stack. Register variables are stored in Register. Global variables are stored in data segment. The memory created dynamically are stored in Heap And the C program instructions get stored in code segment and the extern variables also stored in data segment. Nooo NoooStatic variable will be stored in .BSS segment... (Block Started By Symbol)


Where does global static local register variables free memory and C Program instructions get stored?

* These are all implementation defined. Access to `register' specified indentifiers should be as fast as possible, so the compiler may place the value in a machine register. However, the compiler is free to treat a `register' declaration as an `auto' declaration. * Where free memory is maintained is an OS specific concept. Instructions are generally stored in code segement. Local Variables are stored in Stack. Register variables are stored in Register. Global & static variables are stored in data segment. The memory created dynamically are stored in Heap And the C program instructions get stored in code segment.


Where auto variables are stored?

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


Why there are no global variables in java?

Global variables are globally accessible. Java does not support globally accessible variables due to following reasons:The global variables breaks the referential transparencyGlobal variables creates collisions in namespac


Where does global variables stored in C?

It depends entirely on what platform you are using. In an embedded environment, for instance global/static variables go into different RAM memory segments depending on whether or not they are initialised. constants are often left in ROM automatic variables are normally placed of the stack of the currently running task but not always.


What is the other name of global variables?

Another name of global variable is "EXTERNAL VARIABLES".


Where dynamic variables are stored?

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


What are global variable?

Variables that are declared globally outside every program are called global variables.


What is a logical use for global variables?

Storing global data.


What are the differences between global variables and local variables in C plus plus?

Global variables can be seen in all blocks of your program, when local variables are visible only within the block where it's declared.


Where does Local Variables get stored in?

Stack.