定义类型的顺序 [英] Order of defining types

查看:78
本文介绍了定义类型的顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将变量定义为 static long / double 的顺序上是否有任何偏好/约定/规则?其他类型?

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

例如

static double a;

double static a;

功能有什么不同吗?

推荐答案

它们是等效的,但 static


(C99,6.11.5p1)存储级说明符
的位置不是在
声明中声明说明符的开头是过时的功能

(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"

这篇关于定义类型的顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆