Error:array.c:6:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int i=0;i<3;i++){
we can see the "C99",yes,it's the clash by the version.In the for looption,some version can't support the int in for looption to Initialize it.To solve this problem,we can initialize it out of the for looption.
Under the Linux use C language to program it‘s problem
最新推荐文章于 2024-07-24 17:46:08 发布