Order of defining types

后端 未结 1 846
有刺的猬
有刺的猬 2020-12-11 15:10

Is there any preference/convention/rule on order for defining a variable as static and long/double or other types?

e.g. is



        
相关标签:
1条回答
  • 2020-12-11 15:51

    They are equivalent but static at the beginning is preferred.

    (C99, 6.11.5p1) "The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature"

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