mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-25 11:13:38 +08:00
Add floating-point format in data_and_memory.md
This commit is contained in:
@ -110,8 +110,8 @@ comments: true
|
||||
|
||||
<p align="center"> Fig. 数组元素的内存地址计算 </p>
|
||||
|
||||
```java title=""
|
||||
// 元素内存地址 = 数组内存地址 + 元素长度 * 元素索引
|
||||
```shell
|
||||
# 元素内存地址 = 数组内存地址 + 元素长度 * 元素索引
|
||||
elementAddr = firtstElementAddr + elementLength * elementIndex
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user