使用此代码:
struct Structure {
int a;
char b[4];
};
void function() {
int a = 3;
char b[] = {'a', 'b', 'c', 'd'};
}
我可以使用聚合初始化Structure的值进行a初始化吗?
我试过了,但这给了我错误bStructure{a, b}cannot initialize an array element of type 'char' with an lvalue of type 'char [4]'