mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-06 22:34:18 +08:00
Update data_and_memory.md
This commit is contained in:
@ -58,10 +58,10 @@ comments: true
|
||||
|
||||
```cpp title=""
|
||||
/* 使用多种「基本数据类型」来初始化「数组」 */
|
||||
int numbers[5] = {0};
|
||||
float decimals[5] = {0};
|
||||
char characters[5] = {'0','0','0','0','0'};
|
||||
bool booleans[5] = {0};
|
||||
int numbers[5];
|
||||
float decimals[5];
|
||||
char characters[5];
|
||||
bool booleans[5];
|
||||
```
|
||||
|
||||
=== "Python"
|
||||
|
Reference in New Issue
Block a user