Is there a way to create a for loop with only two expressions in C?

后端 未结 1 1036
春和景丽
春和景丽 2020-12-10 12:46

I came across this in the C standard text, any version I can find for C99 or C11, at §6.8.5 :

iteration-statement:
  while ( expression ) statement
  do stat         


        
相关标签:
1条回答
  • 2020-12-10 12:58

    The production for declaration is:

    declaration:
        declaration-specifiers init-declarator-listopt ;

    So the semicolon is already part of it.

    0 讨论(0)
提交回复
热议问题