answersLogoWhite

0

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.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

Local Variables will get stored in?

Stack.


When you compile source code where the variables stored?

When you compile source code, the variables are stored in memory during program execution. The compiler translates the source code into machine code, which allocates memory for variables in different segments, such as the stack (for local variables) and the heap (for dynamically allocated memory). The specific location and management of these variables depend on the programming language, the compiler, and the architecture of the system. Additionally, constants and global variables may be stored in separate memory regions.


IN 8085 local variables will get stored in?

Registers or RAM-memory.


Variable Is a location in the computer's memory where a value can be stored for use by a?

program. Each variable has a name that serves as an identifier, allowing the program to reference and manipulate the stored value. Variables can hold different types of data, such as integers, strings, or booleans, and their values can be changed throughout the program's execution. This flexibility makes variables essential for managing data and controlling the program's behavior.


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)

Related Questions

What is a computer variables?

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.


Where dynamic variables are stored?

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


Is global variables are stored in registers?

They is not.


Where does Local Variables get stored in?

Stack.


Local Variables will get stored in?

Stack.


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


When you declare an variable in c language where it will be stored in the computer?

Nowhere, variables exist only during the program run. If you want permanent storage, use files.


Where local variables are stored in c?

On the stack.


Where do register variables get stored?

Either in registers or on the stack.


Global variables are stored in?

Main memory (RAM).


When you compile source code where the variables stored?

When you compile source code, the variables are stored in memory during program execution. The compiler translates the source code into machine code, which allocates memory for variables in different segments, such as the stack (for local variables) and the heap (for dynamically allocated memory). The specific location and management of these variables depend on the programming language, the compiler, and the architecture of the system. Additionally, constants and global variables may be stored in separate memory regions.