answersLogoWhite

0


Best Answer

Basically,

&array[i];

That is, the memory location for an array object with index i.

Or, you can do:

(array + i);

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

This is known as searching.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How will you find the location of an element of an array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you find particular element in array?

by using index position we can find the particular element in array.


What is an individual storage location in an array?

swag variable


What is the index number of the last element of an array with 9 elements?

(array.length - 1) will find the index of the last element in an array (or -1 if the array is empty).


The minimum number of comparisons requied to find the second smallest element in a 1000 element array is?

1010


Insert an element after an element in an array?

To begin, obtain the element to be added, such as x Then, say pos, get the position where this element will be put. Then shift the array items one position ahead, then do the same for all the other elements next to pos. Because the location pos is now empty, insert the element x there. To learn more about data science please visit- Learnbay.co


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.


How do you find the minimum value of an array in c language?

Your best bet would probably be to iterate through the array using a for loop and compare each value to the current low and high values (which you would store in a local variable) for example: for each element in array { if current is less than lowest_value lowest_value = current else if current is greater than highest_value highest_value = current }


Will an array element be deleted when you retrieve it from the array?

You cannot delete from an array.


Write a c program to find the maximum value of 25 element in an array?

int findMax(int *array) { int max = array[0]; for(int i = 1; i < array.length(); i++) { if(array[i] > max) max = array[i] } return max; }


Which element of array does this expression refer num5?

which element of the array does this expression reference num[5]


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.


How do you find address of an element in a 3d array?

C-style example: sometype array [P][Q][R]; addr (array,I,J,K) = (char *)array + sizeof (sometype)*(I*Q*R + J*R + K)