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

Why main is used in c?

684


how we can make 3d venturing graphics on outer interface

4170


List the variables are used for writing doubly linked list program.

1707


What are examples of structures?

692


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

743






differentiate built-in functions and user – defined functions.

745


What does double pointer mean in c?

675


In a header file whether functions are declared or defined?

742


Is main is a keyword in c?

712


Is null always equal to 0(zero)?

696


How can I convert a number to a string?

697


What are variables and it what way is it different from constants?

876


What is the difference between char array and char pointer?

615


What is the 'named constructor idiom'?

738


Why is c so popular?

763