answersLogoWhite

0


Best Answer
Awais khan

LOC(LA[K]) =base(LA)+w(k-lowerbound)

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which formula you will to calculate The memory address of fifth element of an array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which formula you will use to calculate The memory address of fifth element of an array?

a


What is the memory address of some element if the base address is x and each element of the array takes e memory locations?

The memory address of some element if the base address is x, each element of the array takes e memory locations, and the index based zero of the element is i, is x + ie.


How do you calculate starting address in the memory map of a 4k byte memory is 2000Hspecify the last address?

If a 4k segment is stored at address 2000H, the last address will be 2FFFH.


What is the functional of a bus?

The bits of address bus inform the memory(Ram) which particular element is to be read or write in memory.


An algorithm of deleting linked list?

To delete a linked list walk through the list and delete the memory allocated to each element, remembering the next element address, and then iterating or recursing the process using the next element address, until the next element address is null.


How are elements of an array stored in memory?

Computer memory is linear so a one dimensional array can be mapped on to the memory cells in rather straight forward manner.To find the actual address of an element one needs to subtract one from the position of the desired entry and then add the result to the address of the the first cell in the sequence.Having said that therefore it is necessary to know the starting address of the space allocated to the array and the size of the each element, which is same for all the elements of an array.The the location of the Ith element would be B+I*S where B is the base address(Starting address of the array) and S is the size of each element of the array.


What is offset address?

An offset address is a relative address rather than an absolute address. You use offsets to refer to memory relative to an absolute address. For instance, array indices are implemented using offsets from the start address of the array, such that element 0 is at offset 0 and element 5 is at offset 5.


How would you use indirect address?

An indirect address is an address contained in a register or memory location, instead of in the instruction itself. In the 8085, the most common form is to load or calculate an address in the HL register, and then access the memory pointed to by HL using the M register designation, such as MOV A,M.


How linear arrays represented in memory?

To implement array data structure, memory bytes must be reserved and the accessing functions must be coded. In case of linear arrays, the declaration statements tell how many cells are needed to store the array. The following characteristics of the array are used to calculate the number of cells needed and to find the location or address of any element of the array.1. The upper bound (UB) of the index range.2. The lower bound (LB) of the index range. In C/C++, LB is zero.3. The location in memory of the first byte in the array, called base address of the array (Base)4. The number of memory bytes needed for each cell containing one data element in the array (size, denoted by W)By cell we mean a unit of memory bytes that will be assigned to hold a value of respective data element.During the compilation of the program, the information about characteristics of the array is stored in a table called DOPE VECTOR. When compiler comes across references to an array element, it uses this information that will calculate the element's location in memory at runtime.


What is the Difference Between memory address and memory?

Memory is microchip; address are processor board slots


What is sequential address method?

Sequential address method is a memory addressing technique where data is stored in adjacent memory locations, allowing for easy access to the next or previous data element by incrementing or decrementing the memory address by a fixed amount. This method is commonly used in computer programming to efficiently access data structures like arrays or linked lists sequentially.


How to display the content of memory address stored in an element of an array?

void *array[2]; printf ("array[%d]=%p\n", i, array[i]);