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.


How many memory location could be directly accessed in a ram chip which is connected?

The number of memory locations that can be directly accessed in a RAM chip depends on its size and architecture. For example, a 1 GB RAM chip typically has 2^30 (1,073,741,824) memory locations if each location holds 1 byte. The total number of directly accessible locations is determined by the addressing scheme, which is usually defined by the number of address lines in the chip.


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 Branch in Reserve?

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


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


What bank has routing number 01150001?

The routing number 01150001 belongs to the Federal Reserve Bank of New York. It is used for various electronic funds transfers and other banking transactions within the Federal Reserve System. If you need to confirm specific details or services associated with this routing number, it's advisable to contact your bank directly.