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
What are pointers? What are different types of pointers?
Tell me what is null pointer in c?
Explain indirection?
the question is that what you have been doing all these periods (one year gap)
Where define directive used?
How many data structures are there in c?
Why c is called object oriented language?
What is the equivalent code of the following statement in WHILE LOOP format?
Can you write the algorithm for Queue?
What does static variable mean in c?
what is the syallabus of computer science students in group- 1?
What does main () mean in c?
How variables are declared in c?
What is static and auto variables in c?
Is c is a low level language?