Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道如果数组部分初始化,编译器会将未初始化的数组元素设置为 0。
int arr[3] = {3,1};
但是在 GCC 或类似方法中是否有一个警告选项来列出部分初始化的数组?