answersLogoWhite

0


Best Answer

Definition.

Example:

extern int x1; /* declaration */

int x2; /* definition */

int x3= 2; /* definition with initialization */

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When variable in c gets memory After declaration or initialization?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

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 the difference between gets and puts?

Direction: gets: from standard input to memory puts: from memory to standard input note: 'gets' is unsafe, use 'fgets' instead


How c program gets stored in the memory?

Binary object code executable.


What does a Java Boolean type variable declared but not yet initialized contain when its class is instanciated?

If it is a class or instance variable, it gets the default value of false. If it is a local variable (inside a method), it doesn't have a value until you explicitly set one.


What do you mean by garbage collection in data structure?

all classes and variables created in a program are put on something called the Heap, which is stored in main memory (RAM). The Garbage collector gets rid of any class or variable that becomes impossible to reference ever again in the program. For example, say you have a main method and from there you call another method, any local variables created in that other method will be put on the heap while they are in use, ie that function is running. As soon as the method ends, the Garbage collector will come and "release" the memory where those variables were for use in other parts, because you can never access them again when the method finishes.

Related questions

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 variable is a condition in an experiment that gets affected by the independent variable?

The dependant variable is affected by the independent variable


What is an experimental goup?

It gets the independent variable.


What is depent variable?

A dependent variable is something that depends on other factors. It is what gets measured and what is affected during an experiment. Without an independent variable there can be no dependent variable.


What are some examples of constants in science?

A constant variable is a variable that gets changed by a physical substance


What are some examples of constant variables in science?

A constant variable is a variable that gets changed by a physical substance


When does the memory created for an object?

Memory for a Java object gets created when the object is instantiated. For example private String name = "rocky"; At the end of this statement the memory for the string object name gets created in the memory.


Where does the declaration of independence say governments get their power?

The government gets its power to govern as enumerated in the declaration of independence from the constitution.


A variable divided by 6 equals 24 estimated what would the variable be?

Its 126. Hope Someone Gets Use Out Of This Answer!!!!


Manipulated variable is also known as?

The manipulated variable is your independent variable. This gets plotted along the x-axis on a graph, and your dependent variable gets plotted along the y axis. Example- think of a velocity-time graph (physics), or a dose-response graph (pharmacology). The variable you are able to control (like time or dose) is your manipulated variable, and the variable whose value is contingent on how you manipulate the first is your dependent variable (drug response etc.)


What is an inverse relationship between two variables?

An inverse relationship is one in which as the value of one variable increases, the value of the second variable decreases. For example, in the equation y = 1/x, as y gets bigger, x gets smaller and as x gets bigger, y gets smaller.


What variable gets changed during an investigation?

Dependent variables