相关疑难解决方法(0)

我们可以有一个可变长度数组类型的struct元素吗?

我们可以声明一个可变长度的结构元素吗?

条件如下:

typedef struct
{
   uint8_t No_Of_Employees;
   uint8_t Employee_Names[No_Of_Employees][15];
}st_employees;
Run Code Online (Sandbox Code Playgroud)

c struct variable-length-array

8
推荐指数
3
解决办法
2万
查看次数

标签 统计

c ×1

struct ×1

variable-length-array ×1