Update data_and_memory.md
This commit is contained in:
parent
45d2934386
commit
f90f15c77d
@ -58,10 +58,10 @@ comments: true
|
|||||||
|
|
||||||
```cpp title=""
|
```cpp title=""
|
||||||
/* 使用多种「基本数据类型」来初始化「数组」 */
|
/* 使用多种「基本数据类型」来初始化「数组」 */
|
||||||
int numbers[5] = {0};
|
int numbers[5];
|
||||||
float decimals[5] = {0};
|
float decimals[5];
|
||||||
char characters[5] = {'0','0','0','0','0'};
|
char characters[5];
|
||||||
bool booleans[5] = {0};
|
bool booleans[5];
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "Python"
|
=== "Python"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user