在以下代码中,const int不能用作数组大小:
const int sz = 0; typedef struct { char s[sz]; } st; int main() { st obj; strcpy(obj.s, "hello world"); printf("%s", obj.s); return 0; }
c
c ×1