wangdoc / clang-tutorial

C 语言教程

Home Page:https://wangdoc.com/clang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

array.md 中的疑问

logicshan opened this issue · comments

https://github.com/wangdoc/clang-tutorial/blame/main/docs/array.md#L205

int n = a + b;
int a[n];

两行都有 a. 没有 get 到这个例子的点

应该是

int n = a+b;
int m[n];

代表数组的长度为计算值而非常量

那这里算个笔误吧. 不过这里把第二行的 a 改为 m, 下文也要做相应修改

这里是笔误,已经改过来了。