14

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

e.g. is

static double a;

same as

double static a;

is it any different for functions? above, a is variable.

4

1 回答 1

23

它们是等效的,但static在开始时是首选。

(C99,6.11.5p1)“存储类说明符在声明中的声明说明符开头以外的位置是一个过时的功能”

于 2013-06-25T09:14:10.350 回答