answersLogoWhite

0


Best Answer

this is depend upon which processor we are using, 16 bit or 32 bit.

for 16 bit system:

int 2 bytes

short int 2 byte

long int 4 bytes

float 4 bytes

char 1 byte

double 8 bytes

in 32 bit system it takes just double space for int data type.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write about space requirements for variables of different data types?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Where does the Java virtual machine keep space for local method variables?

In stack


Write a program in Lex to eliminate white space and collect numbers as a token?

write a lex program to delete space from the program


What is the purpose of object oriented programming?

The answer lies in difference in Object oriented and variable based technology. Object oriented technology has a lot of benefits. One of which is that it eliminates declaration of variables for every time usage. It means that disk space is saved as variables are declared only once and only object is created further which gets an instance of these variables. It makes logic to easy implement and understand. Its systematic way of implementing a problem statement.


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 is the purpose of the program stack?

Its main use is to store local variables, arguments and return address each time a function is called.When your program calls a function the following happen :- The function arguments are put on the stack- The current instruction pointer is put on the stack- The program jumps to the start of the function- Space is allocated on the stack to hold local variables- The function executes- The space holding local variables is de-allocated- The instruction pointer is restored and removed from the stack (we are now leaving the function and resuming the calling procedure)- The arguments are removed from the stack

Related questions

What are the different kinds of linear equation?

There can be linear equations with 1, 2, ... variables. Each of these is different since an equation with n variables belongs to n-dimensional space.


How do you find a point of a linear function?

Given a linear function in n variables, you need to select values for (n-1) of the variables. Solve the resulting function for the nth variable. Then the ordered n-tuple represents the coordinates, in n-dimensional space, of a point that is on the linear function.Selecting different sets of (n-1) variables, and different values will result in different solutions. Together, these will from a line in n-dimensional space.


How can you write an equation in two variable to solve a problem?

If there are two variables, you'll usually need two equations in the two variables, to be able to find a specific solution. How you write the equation depends on the specific problem. In general, it requires some practice, to be able to convert a word problem into mathematical equations.


Why does it stop on computing space requirements when it download itunes?

computing space requirement


Why are minimum requirements for space and staff ratios are necessary for children's safety?

exaples of minium requirements for space, staff ratios are nessesary for childrens safety


Why are minimum requirements for space staff ratios are necessary for childrens safety?

exaples of minium requirements for space, staff ratios are nessesary for childrens safety


Why is not possible to write through fountain pen in space?

i think not possible to write in space


What do you have to know to look after a pet mouse?

You have to know its social requirements its space requirements and nutritional needs.


Where does the Java virtual machine keep space for local method variables?

In stack


What variables used in experiment the mongo seeds?

sunlight,water,soil and space.. temperature


How do you write a sequence?

write something, leave a space, write something else.


What satisfies an equation in two variables?

An ordered pair or coordinates of a point in 2-dimensional space.