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.
How can I enable for loop initialization when compiling in c89 or gnu89 mode using GCC and Clang?
你不能,因为循环初始化是一个 c99 特性。只需使用 gnu99 或 c99