answersLogoWhite

0

You don't directly specify the number of bytes to reserve in memory to store data because you don't necessarily know how many bytes that data requires.

Instead, you specify the type of data and the number of elements, and the compiler and run-time library figures out how many bytes to allocate.

Its a portability issue. You don't want to tie your code to a specific word size because the code would then break when the underlying platform changes. One very famous example of this is the int data type in MS Windows 3.x. That was a 16-bit integer. When Windows "grew up" and the int became a 32-bit integer, the int changed to 32-bit, and everyone's code broke, except those that planned ahead and wrote the code correctly.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Where is the FR number on a US silver certificate?

Silver certificates don't have Federal Reserve letters or numbers because they were issued directly by the Treasury, not through the Federal Reserve system.


What is the FR number on a silver certificate?

There aren't any Federal Reserve indicators or seal on silver certificates. Silver certificates were issued directly by the government and not through the Federal Reserve system.


What is the phone number of the Reserve Branch in Reserve?

The phone number of the Reserve Branch is: 985-536-4107.


How many memory locations can be specified by an 14 - bit address?

A 14 bit address can specify 214 or 16,384 different locations.


What is the phone number of the Reserve Public Library in Reserve?

The phone number of the Reserve Public Library is: 575-533-6276.


Why is hexadecimel useful in computing?

Hexadecimal allows you to specify the size in bytes of a decimal number. A Simple decimal number does not signify its size in memory so a computer must generally use the smallest size that the number will fit into.


How do you transfer 20 consecutive bytes from one location to another location?

You can use a memory move function like memcpy to transfer 20 consecutive bytes from one memory location to another memory location. Make sure to specify the source, destination, and the number of bytes to transfer.


How many memory address does this number of address lines allow the 8086 to access directly?

The 8086/8088 has 20 address lines. It can access 220, or 1MB, or 1,048,576 bytes of memory.


How many memory addresses does this number of address lines allow the 8086 to access directly?

The 8086/8088 has 20 address lines. It can access 220, or 1MB, or 1,048,576 bytes of memory.


Specify the number of registers in a 2k memory chip?

1kb=1024 byte is multiply by the total memory which is given to you as bellow: (1024*2) = 2048 register


How the number of lines in the address bus limits the amount of memory installed on a system?

The elements (individual cells) in memory need to be addressed by an integer number. The amount of memory that can be addressed depends on the largest integer number that can be represented (as patterns of '0s'-electricity 'off', and '1s'-electricity 'on') on a computer bus (a bundle of wires called lines). Thus the more wires available to hold the pattern, the larger the integer number that can be represented and the more memory that can be directly addressed.


What is the phone number of the Bloedel Reserve in Bainbridge Islan Washington?

The phone number of the Bloedel Reserve is: 206-842-7631.