C99可以在类型的右侧显示类型修饰符

问题描述

我喜欢将类型限定符放在类型的右边,特别是对于指针声明,因为它使使用right-left rule读取声明更容易。 例如

uint8_t volatile * const p_foo; // p_foo is a const pointer to a volatile uint8_t

在C99中将类型限定符置于类型的右侧是合法的。但是像signedlong这样的类型修饰符呢?

例如

`int signed const * const p_bar; // is it legal in C99 to put 'signed' to the right of 'int'?`

FWIW gcc -std=c99 -pedantic-errors对此没有任何影响。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)