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


Please Help Members By Posting Answers For Below Questions

What are the characteristics of arrays in c?

616


What is extern storage class in c?

514


Explain continue keyword in c

589


In C programming, what command or code can be used to determine if a number of odd or even?

624


what are the advantages of a macro over a function?

648






Does c have enums?

603


Explain what is the difference between far and near ?

653


How can you draw circles in C?

625


What is bss in c?

606


How can I dynamically allocate arrays?

594


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

679


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3190


How many keywords are there in c?

591


What is the difference between malloc calloc and realloc in c?

649


What is c programming structure?

620