• 2022-06-19
    若一维数组的首个元素是a0,每个元素占d个字节,则其随机存取公式是( )?
    A: Loc(ai) = Loc(a0) + (i+1)*d
    B: Loc(ai) = Loc(a0) + i*d
    C: Loc(ai) = Loc(a0) + (i-1)*d
    D: Loc(ai) = Loc(a0) + i
  • 举一反三