1.

How can we calculate a address of element of an array in both one dimensional and 2 dimensional by row measure and column measure​

Answer»

Explanation:Array of an element of an array say “A[ I ]” is CALCULATED using the FOLLOWING formula: Address of A [ I ] = B + W * ( I – LB ) Where, B = BASE address W = Storage Size of one element stored in the array (in byte) I = Subscript of element WHOSE address is to be found LB = Lower limit / Lower Bound of subscript, if not specified ASSUME 0 (zero)



Discussion

No Comment Found