Array address Calculation Single and double dimensional array
Single dimensional arrayAddress=B+W (I-L) B=base addressW=size of the elementI=index of the element whose address is to be calculatedL=Lower boundary of the array
Array address Calculation
Binary Search
Single dimensional array
Address=B+W (I-L)
B=base address
W=size of the element
I=index of the element whose address is to be calculated
L=Lower boundary of the array

Double dimensional array
In a double dimensional array the elements can be arranged in two ways. Row major order and column major order.
Row major order:
To calculate the address of cell the formula is
Address of A [ I ][ J ] = B + W * [ N * ( I – Lr ) + ( J – Lc ) ]
column major order.
To calculate the address of cell the formula is
Address of A [ I ][ J ] = B + W * [( I – Lr ) + M * ( J – Lc )]
Where B=Base address
W=size of the data type stored in the array
Lr=Lower bound of row
Lc=Lower bound of column
I= The index of the row
J=The index of column

Watch java videos
Related Posts
Continue learning with these related articles

Logic Gates for ISC Class 11: Truth Tables, Universal Gates, Half and Full Adder
ISC Class 11 Computer Science notes on logic gates: AND, OR, NOT, NAND, NOR, XOR and XNOR with truth tables, why NAND and NOR are universal gates, and half adder and full adder circuits with their Boolean expressions.
Decimal to Binary Conversion in Java: 3 Programs with Examples
How to convert a decimal number to binary on paper and in Java: three programs (String, place value and Integer.toBinaryString), binary to decimal, a dry run and common mistakes.

ISC Class 11 Computer Science Sample Paper 2026-27 with Solutions
A full 70-mark ISC Class 11 Computer Science sample paper for the 2026-27 annual exam: MCQs, number systems, propositional logic, logic gates, Java classes, arrays, strings, searching and sorting, and computing ethics, with complete worked solutions.