Add floating-point format in data_and_memory.md

This commit is contained in:
krahets
2023-02-22 19:02:26 +08:00
parent 3daaf30f23
commit d87c9b5084
6 changed files with 93 additions and 31 deletions

View File

@ -110,8 +110,8 @@ comments: true
<p align="center"> Fig. 数组元素的内存地址计算 </p>
```java title=""
// 元素内存地址 = 数组内存地址 + 元素长度 * 元素索引
```shell
# 元素内存地址 = 数组内存地址 + 元素长度 * 元素索引
elementAddr = firtstElementAddr + elementLength * elementIndex
```