Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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?

Answers were Sorted based on User's Feedback



if the address of a[1,1] and a[2,1] are 1000 and 1010 respectively and each occupies 2 bytes then ..

Answer / ....................

it's order is a[5,5] because it takes 2 bytes for every
elements i.e a[1,1]=1000 a[1,2]=1002 a[1,3]=1004
a[1,4]=1006 a[1,5]=1008 a[2,1]=1010..............

Is This Answer Correct ?    49 Yes 8 No

if the address of a[1,1] and a[2,1] are 1000 and 1010 respectively and each occupies 2 bytes then ..

Answer / 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

if the address of a[1,1] and a[2,1] are 1000 and 1010 respectively and each occupies 2 bytes then ..

Answer / kowshik

the array has been stored in row-major order.

Is This Answer Correct ?    5 Yes 1 No

if the address of a[1,1] and a[2,1] are 1000 and 1010 respectively and each occupies 2 bytes then ..

Answer / vignesh1988i

always the 2D array will be stored in column order only , in
C.... so only ,
it is a must that we must specify the column subscript
however we miss the row subscript.....

thank u

Is This Answer Correct ?    7 Yes 4 No

Post New Answer

More C Interview Questions

Program to swap the any two elements in an array containing N number of elements?

1 Answers   Bosch, Glenwood, Ugam Solutions,


what is difference between null and nul in c language

2 Answers  


What are qualifiers?

0 Answers  


write a programe returns the number of times the character appears in the string

2 Answers  


Explain the binary height balanced tree?

0 Answers  


What is function prototype in c with example?

0 Answers  


If the size of int data type is two bytes, what is the range of signed int data type?

0 Answers  


12344321 123 321 12 21 1 1 how i print this program??

5 Answers   DSR Management, Winit,


What will be the result of the following program? main() { char p[]="String"; int x=0; if(p=="String") { printf("Pass 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } else { printf("Fail 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } } a) Pass 1, Pass 2 b) Fail 1, Fail 2 c) Pass 1, Fail 2 d) Fail 1, Pass 2 e) syntax error during compilation

10 Answers   IBM,


tell me the full form of c?

2 Answers  


Explain what are multidimensional arrays?

0 Answers  


What header files do I need in order to define the standard library functions I use?

0 Answers  


Categories