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

How can my program discover the complete pathname to the executable from which it was invoked?

665


How can I call fortran?

649


What is function what are the types of function?

563


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

627


What is a null pointer in c?

602






Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

671


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1675


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1636


Explain void pointer?

595


How to set file pointer to beginning c?

674


What are the disadvantages of external storage class?

595


What is break in c?

590


What is the use of getchar functions?

683


What does p mean in physics?

589


Explain how can I prevent another program from modifying part of a file that I am modifying?

647