[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
Base Address
Base Address
A starting address for a block of data. When a set of items of data is stored in the memory of a computer it is often convenient to keep the data in order and store it in a set of consecutive addresses. When this is done the first of these addresses is known as the base address because any other address can be found by adding to or subtracting from this number.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
Base Address
Base Address
A starting address for a block of data. When a set of items of data is stored in the memory of a computer it is often convenient to keep the data in order and store it in a set of consecutive addresses. When this is done the first of these addresses is known as the base address because any other address can be found by adding to or subtracting from this number.
C, C++ arrays
An array is a typical 'block of data'. In C++, the base address of an array is the adress of the first element (at index zero).//Create an array int array[10]; //Get base address int* baseAddress1 = &array[0]; //Equivalent to get the base address int* baseAddress2 = array;
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
