answersLogoWhite

0


Best Answer

In procedural programming languages like C auto variables have a lifetime bound to their scope inside a function, and is often synonymous with local variable. They're commonly allocated in the current stack frame along with a function's arguments and a possible return value.

User Avatar

Wiki User

โˆ™ 2012-05-18 02:46:26
This answer is:
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
User Avatar

Add your answer:

Earn +20 pts
Q: Where are the auto variables stored?
Write your answer...
Submit
Related questions

Where auto variables are stored?

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


Where are the auto variable stored?

auto variables are typically (nearly always) stored on the stack, though some compilers might optimize them to be stored in a register if they meet certain criteria.


Where final variables are stored in java?

Final variables are stored in the same place all other variables are stored. "The JVM Heap"


When a function is recursively called all automatic variables are stored in a list stored in a stack stored in an array stored in queue?

Automatic variables are stored on the thread-local call stack.


Where dynamic variables are stored?

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


What is auto declaration in C?

Auto is one of the four storage classes in c. This is the default storage class. The auto storage class can be used only inside functions, i.e. only to declare local variables and not to declare global variables. All the local variables are by default auto variables. Other storage classes are: Register - variables declared may get stored in CPU registers instead of RAM Static - default storage class for global variables extern - defines global variables that is visible to all object modules


Where the constant variables stored in C?

constant variables are not stored anywhere..where ever they r present in the program the compilier at compilation time replaces these varibles by their values...however the local variables are stored in stack memory & global and static variables are stored in data segement of the program....


Where are global local static extern variables stored?

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.


In Java where do static variables stored in the memory?

static variables are stored in a special area of the heap called the "permanent generation".


Where the variables and static variables are stored in c?

Main memory (RAM).


Where does Local Variables get stored in?

Stack.


Local Variables will get stored in?

Stack.


Is global variables are stored in registers?

They is not.


Where are global variables stored in memory?

Global variables don't have special place where it can be stored in. OS decides where to save it. Global variables are special only in the way that all blocks of your program can get access to it.


How the elements of the structure variables are stored in memory?

They are stored in consecutive memory locations.


Where local variables are stored in c?

On the stack.


Local Variables is stored in which part of the memory?

stack


Global variables are stored in?

Main memory (RAM).


Where do register variables get stored?

Either in registers or on the stack.


What is the purpose of the keyword 'auto' in C plus plus?

Objects and variables defined within a block (statements enclosed in braces {}), or in a function signature have auto storage unless otherwise specified using the extern or static keyword. Automatic objects have no linkage, are stored on the program stack, and persist until the end of the block in which they are declared. Although objects and variables can be specified using the auto keyword, explicit use of auto is unnecessary. Its only purpose in C++ is for clarity.


Where static variables stored?

they are stored in the memory.they obviously can't be stored in stack Bcoz there value won't be retained between function call.


Can static variables be changed?

A static variable is one which is not stored on the stack but in the memory of the program. Static variables can be changed.


Where are the static variables 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 the volatile variables stored in c?

Main memory (RAM).