请问各位大佬:哪种单片机的编译器支持结构数组包含柔性数组的初始化?
如下:struct line2 {
int length;
unsigned char contents[];
};
struct line2 thisline2 = { 5, {1, 2, 3, 4, 5 } };//编译ok
struct line2 thisline3[] ={ 5, {1, 2, 3, 4, 5} };//编译错误,但是在东芝870C中却OK。
除了东芝的870C,还有哪种编译器可以这样用呀?
页:
[1]