if the address of a[1,1] and a[2,1] are 1000 and 1010
respectively and each occupies 2 bytes then the array has
been stored in what order?
Answer Posted / parul_kul
The order of array cannot be defined as we dont know the
max size of the array. however we can calculate the column
subscript of the array as follows-
a[1,1] = 1000, a[1,2] = 1002, a[1,3] = 1004, a[1,4] =
1006, a[1,5] = 1008.
After this the 2nd row will start as a[2,1] = 1010, and so
on.
So we can define the no. of columns, i.e. 5, in this array
but not the no. of rows.
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
Write a program that accept anumber in words
Differentiate between ordinary variable and pointer in c.
What is 1f in c?
Function calling procedures? and their differences? Why should one go for Call by Reference?
Explain null pointer.
Can math operations be performed on a void pointer?
Which is better pointer or array?
Tell me can the size of an array be declared at runtime?
Explain about the constants which help in debugging?
What is 2 d array in c?
What are the different types of control structures?
How to explain the final year project as a fresher please answer with sample project
What is else if ladder?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
Why c is procedure oriented?