answersLogoWhite

0

That depends on the programming language, and on the specific data type. Java, for example, has integers of different sizes; for example, an int uses 4 bytes, and a long uses 8 bytes. It also has shorter integer data types. Java also has different types of floating point numbers; for example, a double uses 8 bytes, and a float uses 4 bytes. Java also has classes for arbitrary-precision math (classes BigInt and BigMath); in this case, the size in memory for a number will vary, depending on the number of digits.

That depends on the programming language, and on the specific data type. Java, for example, has integers of different sizes; for example, an int uses 4 bytes, and a long uses 8 bytes. It also has shorter integer data types. Java also has different types of floating point numbers; for example, a double uses 8 bytes, and a float uses 4 bytes. Java also has classes for arbitrary-precision math (classes BigInt and BigMath); in this case, the size in memory for a number will vary, depending on the number of digits.

That depends on the programming language, and on the specific data type. Java, for example, has integers of different sizes; for example, an int uses 4 bytes, and a long uses 8 bytes. It also has shorter integer data types. Java also has different types of floating point numbers; for example, a double uses 8 bytes, and a float uses 4 bytes. Java also has classes for arbitrary-precision math (classes BigInt and BigMath); in this case, the size in memory for a number will vary, depending on the number of digits.

That depends on the programming language, and on the specific data type. Java, for example, has integers of different sizes; for example, an int uses 4 bytes, and a long uses 8 bytes. It also has shorter integer data types. Java also has different types of floating point numbers; for example, a double uses 8 bytes, and a float uses 4 bytes. Java also has classes for arbitrary-precision math (classes BigInt and BigMath); in this case, the size in memory for a number will vary, depending on the number of digits.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Where are global variable store?

Main 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.


Why is there a need for a separate memory bus in addition to main bus?

Having more than one memory bus in addition to the main bus has the main benefit of speeding up data transfer. A memory bus is used to transfer data to and from the memory, or from the CPU to other components. If you have more than one memory bus (say, for each of the peripheral devices you have), you will certainly have a faster data transfer because you computer will not need all the memory from your local bus (this connects all the components on the motherboard like the CPU and memory) when you use your peripheral devices. Presently, there is a variety of available bit-numbers of memory buses on the market, ranging from 32 bits, 64 bits, and 94 bits.


Why is it if MARIE has 4k words of main memory and addresses must have 12 bits?

4K (4096) of addressable space is defined by 12 bits of address space, because 212 = 4096.


Where does global variables stored in C?

It depends entirely on what platform you are using. In an embedded environment, for instance global/static variables go into different RAM memory segments depending on whether or not they are initialised. constants are often left in ROM automatic variables are normally placed of the stack of the currently running task but not always.


What is volatile and why are using in java?

volatile variable is mainly used in multithreading environment. so let me explain it from that context.In a multithreading environment,for a variable which is not marked as volatile will be stored in local cache memory for each thread. Meaning each thread will have a local copy of the variable and they dont know about what value this variable is having in another thread. If a variable is marked volatile, then the updations to this variable will happen in the main memory and not in local cache


Is cache memory is main or sec memory?

cache memory is neither main memory nor second memory. DDR's are Main memory and Disk is second memory.


What is the function of cache memory?

Cache memory is used to hold a copy of the data from the most frequently accessed memory locations to minimise calculation time. For example, a CPU's cache will hold this data so that it doesn't have to call data from the RAM for every calculation it makes, and merely draws from its local cache.


What are the advantages of 8 bit computer architecture?

16 bit has 16 bits of memory and 8 bit have 8 bit of memory these are words of broadside transfers . Assume the main clock as fix timing just by transmitting 16 bits Vs 8 bits we have double the information available to the CPU.


How many address lines are needed to access 256KB of main memory?

The number of address lines needed to access N-KB is given by log2N Then the number of address lines needed to access 256KB of main memory will be log2256000=18 address lines.


What is main memory?

Main memory:Main memory is the computer's internal memory. It is an extension of the Central Processing Unit (CPU).Its function is controlled by the Control Unit (CU) that sends READ or WRITE signal for the appropriate memory location. Main memory accepts data and instructions from the input unit, exchanges them with other parts of the CPU for processing. It stores those instructions and data, which are currently being used by the CPU or awaiting for immediate execution.Semiconductor memories are the widely used forms of main storage. The capacity of a storage device is normally expressed in bytes, characters or bits. Computer's main memory is further divided into random access memory (RAM) and read only memory (ROM)By Professor MUHAMMAD SHOAIB BILALEmail: Shoaibbilal64@yahoo.comThanks!


What is the difference between main and auxiliary memory?

The major difference between main memory and auxiliary memory is that main memory is directly accessed by CPU but the auxiliary memory is not accessed by the CPU directly.For this the data is first transferred to main memory from auxiliary memory and then from main memory the data is transferred to the CPU for further processing. Answered By: Richa Singh