2012-03-27 109 views
5

我看到这个代码片断挥发性和const指针

const volatile int * volatile * const X; 

,但我不明白什么是秒*的手段。

我知道

const volatile int * volatile const X;

表示指向volatile常量数据的volatile常量整型指针。

+11

HTTP://的cdecl。 org/ – hmjd 2012-03-27 13:00:45

+0

@hmjd将其作为答案并追加网站的输出。如果其他人这样做,我会冷静下来。 – karlphillip 2012-03-27 13:17:47

回答

9

理解非平凡C语句的有用网站是cdecl.org

描述为:

const volatile int * volatile * const X; 

CDECL是:

x声明为const指针挥发性指针为const挥发性INT