answersLogoWhite

0


Top Answer
User Avatar
Wiki User
Answered 2012-07-21 00:27:11

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.

001
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

User Avatar
Wiki User
Answered 2015-05-11 15:42:28

memory

001
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Your Answer

Loading...

Still have questions?

Related Questions

Where the variable would be stored in c language?

The Variable will be stored in main memory, if at the time of declaration it is not preceded by any keyword. This is because it will be an auto variable and all the auto variable are stored in main memory. The variable that is stored other than main memory is register variable (stored in register, that is why it is called so.) When you precede a variable by the keyword register, it means you are making a request, it might be or might not stored in the register.


Where are the local variable stored in c?

Where are the local variable stored in c?


Can elements with variable valency can be stored in water?

Yes elements with variable valency can be stored in water. example Phosphorus.


What is the indicates the type of data that can be stored in a field?

The data type of the Variable determines/indicates the type of data that can be stored in a field/variable


What is the difference between auto variable and local variable?

They are the same.


Difference between register variable and automatic variables?

Register variables are stored in register of microprocessor/micro-controller. The read/write access to register variable is the fastest because CPU never need any memory BUS operation to access these variable. Auto variable are stored in stack thus access are much slower. Auto variable can be converted to register by using register keyword before it. It has platform specific limitation. Register variable will work only if free registers are available to hold the variable for a function scope. In case of Microprocessor or microcontrollers having very less number of general purpose registers will never take register variable even if we declare it as register.


What is a computer variable?

In a programming language, a variable is a name for a place where information is stored.


Where auto variables are stored?

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


What is the function of a variable?

A variable is a named memory address in which a value may be stored and mutated.


What is the difference between auto variable and static variable?

A static variable is declared once at the start of a program and it does not disappear when it goes out of scope. An auto variable is declared within a function or block and disappears when it goes out of scope.


What is session in aspnet?

session is a server variable. it works like the ordinary variable but it is stored on the server


Where the local variables will be stored?

When you declare a variable and it's data type in a function, it is stored in the specific space for memory allocated by the variable type identifier known as the "stack."


What are the functions of a storage class?

There are four storage class specifiers in C and C++. These are - 1. auto : The storage specifier auto refers to automatic variable declaration. The life of an automatic variable is the time during which its parent function is running. The scope of an auto variable is the function scope. They can be accessed only from their parent functions. Syntax : auto int a; 2. register : A register variable has all the characteristics of an auto variable. The only difference is that auto variable uses the main memory to store data and register uses the CPU registers. 3. extern : This storage specifier is used to declare a global variable. The life of these variables is the time during which the program runs.


Where string is stored on Heap or Stack in java?

A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.


Where is constant variable stored?

Random Access Memory (RAM)


Where the variables are stored in the computer?

Variable stored in the memory block inside the RAM. whenever we declare a variable it would take space in main memory and consume it's size from RAM.


When auto variable create?

Program enter function.


Where are the auto variables stored?

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.


Which auto expenses would be considered variable?

Insurance premiums


What is automatic variable and what is its use?

It is a local variable known only to the function in which it is declared. Auto is the default storage class.


What happens if you try to find address of register variable?

Either you get a compiler error. Or you get a compiler warning, and the variable won't be stored in register.


What is the difference between an auto storage class and a register storage class in c?

The register storage class specifier is typically used for a heavily-used primitive data type, such as a loop control variable, and indicates to the compiler that this variable should be stored in a machine register to reduce access time. However, there are very few registers available and they are limited in size, so the compiler is free to ignore the specifier, in which case the variable is treated as if it were specified as an auto storage class. The auto storage class specifier allows you to explicitly declare a variable with automatic storage. Such variables are treated as being local to the block, and will fall from scope when the block ends. Since this is the default behaviour of all local variables, the auto specifier is redundant.


What is pointer why you use pointer?

Pointer is a variable that stores the address of another variable. Since pointer is also akind of variable, thus pointer itself will be stored at a different memory location.


In Java where do instance variables stored in memory?

An instance variable is part of an object. Therefore, it gets stored together with the object, on the heap. The heap is the part of memory which is used to store objects.An instance variable is part of an object. Therefore, it gets stored together with the object, on the heap. The heap is the part of memory which is used to store objects.An instance variable is part of an object. Therefore, it gets stored together with the object, on the heap. The heap is the part of memory which is used to store objects.An instance variable is part of an object. Therefore, it gets stored together with the object, on the heap. The heap is the part of memory which is used to store objects.


What is an advantage of a variable in programming?

Advantages of Variable in Programming.As we know that Variable is a place where data is stored and retrieved while its is required. In the context of Programming, we must have to create a variable to store our input data for processing. we can point out its advantages as below. Variable helps us to store dataData stored in variable may be String or Numeric.Variable also can store Constants that can be changed during program execution.Mr. GauroNepal Engineering and Technical Science Academy.Birendranagar, surkhetNepal