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
how to count no of words,characters,lines in a paragraph.
What is the best way to comment out a section of code that contains comments?
How are 16- and 32-bit numbers stored?
Hi can anyone tell what is a start up code?
What is an example of structure?
What is difference between array and pointer in c?
Explain how are 16- and 32-bit numbers stored?
Should I learn data structures in c or python?
What is a pointer variable in c language?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
Write a program to print factorial of given number using recursion?
Explain what are the __date__ and __time__ preprocessor commands?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
How can you avoid including a header more than once?
What is function pointer c?