Sunday 31 May 2015

Q32,Paper 3,J 13 Arrays in C language can have _________ with reference to memory representation.



(A) n-subscripts
(B) two-subscripts
(C) only one subscript
(D) three subscripts only
Answer c.
Elements of multidimensional arrays also can be specified using only one subscript, let the matrix .
     A0,0      A0,1
     A10      A1,1
     A2,1      A2,2
it can be referenced as
A0,0      can be represented by A[0].
A01 can be represented by A[1].
A10 can be represented by A[2].
Similarly
A22 can be represented by a[5]



No comments:

Post a Comment

Note: only a member of this blog may post a comment.