answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: Which of the follwing gives the memory addrees of integer variable a?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

What is the difference between signed integer and unsigned integer in terms of memory and range?

Signed integer is any integer that carries negative sign while unsigned integer is any integer that carries positive sign


What is a function of a variable?

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


What is a variable that has a memory address as its value is called?

Pointer.


What is refrence variable?

Reference variables in java is used to refer to an object. Its a way to access another variable or memory address with a variable and change the data inside the memory address. It gives direct access to the memory access. example:- Box b=new Box(); b is the reference variable of type Box. It can hold reference to any instance of class Box. new Box() creates an instance of class Box. So b is now pointing to an object of class Box. shreya..


What is the difference between normal variable and register variable in c?

In C/C++ when we declare a variable; e.g int var; for this variable (i.e. var) memory is being reserved in RAM (i.e out side processor). If we declare variable like that; register int var2; for this variable memory is being reserved in register of CPU (i.e. withing processor) But register variables are discouraged because processor has to work with registers..... Note: strictly speaking, storage class 'register' means: dear compiler, you might optimize this variable into register, as I won't ever request its address. But of course, it's up to you to decide.

Related questions

What is the process of allocation of memory for an integer type variable?

To dynamically allocate memory, use the following function (stdlib.h I believe): int *variable1 = malloc(sizeof(int));


What is the maximum integer allowed in an integer-type variable?

That varies from each programming language. As a matter of fact, many languages do not put a limit on the maximum size of a variable. It will handle any string, integer, resource, pointer, or other type size, as long as it fits into the memory of the machine running the process.


Where the Memory is allocated for a variable in a program?

if a variable is of value type memory is allocated on stack memory.. if it is of reference type,memory is allocated on heap memory..


What is naming variable?

A variable is a storage location, effectively. It stores information, only whilst your program is running. For instance, Dim Num As Integer = 0 Dim, declares our variable - this is short for Dimension, as it sets aside memory space (random access memory). Num is the name of our Variable, we can refer back to this at later dates. For instance: Dim Num As Integer = 0 'This is our variable Bla bla bla Num = 9 This creates our variable 'Num' and sets it as a Integer. It then assigns the Variable a value (0) Then, it does some code (bla bla bla - Note, this code won't work, it's just used as an example!) Then, we edit the value of our Variable by simply typing "Num = 9" As Integer = This declares the data type, this means we want a Integer (Number) as a data type. Some examples of different data types are: Boolean Byte Char DateTime Decimal Double Int16 Int32 Int64 SByte Single UInt16 UInt32 UInt64 And then that's it! I hope I explained it easily enough for you to understand and remember, no matter how hard you think it is keep trying and you'll get it in no time!


Write a line of code that will create the variable X in memory The data type of X should only hold whole numbers?

Dim Int_NumberHolder as Integer Int_NumberHolder = 3


What are the memory pointer?

That is, a variable pointing at a memory 'cell'.


Which specifier indicates that a variable's reserved space in the memory can be erased or relocated when the variable is out of its scope?

There is no such thing. When the program leaves the scope of the variable, it will be release the memory of the variable automatically and unconditonally.


How much memory is required to store an integer data type?

integer data type consumes memory of 4 bytes or 32 bits


What is a variable plus a variable?

A variable is a named memory location for which the contents are volatile. The antonym of variable is constant.


What is a ponters in c-programming?

with the help of pointers we able to store the memory location of any variable. In c the pointer variable is use to store the memory location of any variable. The pointer variable is define as a simple variable but in pointer variable use a special "*" character at the left most side of name of pointer variable. If any variable name have * it means it is a pointer variable it hold the memory location of variable.


Are pointers integers?

A pointer holds a memory address, from 0 to the upper limit of your memory (in 32 bit addressing this is up to 2^32, 64 bit is up to 2^64 bytes). So in math terms, a pointer could be considered a non-negative integer. However this is not the same as the integer type used in C and other languages, which refers to how the data at that memory address (the raw bits) is interpreted by the system. So the expression "int *x;" declares a pointer to an integer, but x is a memory address, not a literal C-style integer. The value pointed to by x, however, will be interpreted as a literal C-style integer. It may be easier to see using a pointer to a char: char character = 'C'; char *pointerToCharacter = character; In this case, character is a standard char variable, and pointerToCharacter is a pointer (which is a memory address) that points to the location in memory of a character.


How do pointer work in c program?

Pointer can be defined as variable that is used to store memory address , usually the location another variable in memory. Pointers provide a means through which memory location of a variable can be directly accessed.