mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 23:36:30 +08:00
Update data_and_memory.md
使用多种「基本数据类型」来初始化「数组」的 C 语言版本
This commit is contained in:
parent
8733557f00
commit
1131309783
1 changed files with 5 additions and 0 deletions
|
@ -88,6 +88,11 @@ comments: true
|
||||||
=== "C"
|
=== "C"
|
||||||
|
|
||||||
```c title=""
|
```c title=""
|
||||||
|
/* 使用多种「基本数据类型」来初始化「数组」 */
|
||||||
|
int numbers[10];
|
||||||
|
float decimals[10];
|
||||||
|
char characters[10];
|
||||||
|
bool booleans[10];
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue