Answer Posted / bijayalaxmi behera.
The index of an array is an OFFSET from the beginning of the
array, multiplied by the width of the array items:
Say an array of integers, 4 bytes long.
Say beginning of array at address 0x1000
First integer address: BaseAddress + (index * len) = 0x1000
+ ( 0 * 4) = 0x1000
Second integer will be at : 0x1000 + ( 1 * 4 ) = 0x1004.
Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
Write program to remove duplicate in an array?
What are the types of i/o functions?
What is bin sh c?
What is static and volatile in c?
What is a pointer variable in c language?
Write a program to swap two numbers without using a temporary variable?
What is the use of a semicolon (;) at the end of every program statement?
What language is lisp written in?
What is adt in c programming?
How many header files are in c?
What are the different types of linkage exist in c?
Where register variables are stored in c?
What is a char c?
Process by which one bit pattern in to another by bit wise operation is?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above