我最近遇到了表格的文字
struct {
double a, b, c;
}[123];
这到底是做什么的?这甚至是正确的 C 语言吗?
最佳答案
What exactly does this do? Is this even proper C?
这是一个格式错误的代码。编译器将引发语法错误。 [123]
之前应该有一个标识符。
struct {
double a, b, c;
} a[123];
这会将 a
声明为 123 struct { double a, b, c;
。
关于c - 结构声明后括号中的数字是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37976119/