Address Calculation in 1d Array with example