The Wiki page claimed that qualifiers in C ++ are const
and volatile
.
This response reports unsigned
, unsigned
and short
etc. are also qualifiers. Although the issue was mentioned C, page Wiki does not speak about it for a side C. For C qualifiers: const
, volatile
, restrict
and _Atomic
.
And the expanding message field of the qualifier
"Stack Overflow" tag says
The qualifier adds an additional “quality”, such as determining the volatility or constness of a variable
“Add extra quality,” from the quote, singed / unsigned seems to meet the condition, added a limited extra quality to the integer so that it can only contain a positive number or a negative.
I am a little confused about this issue. For C and C ++ , signed
, unsigned
and short
etc., it is considered part of the base type or classifier type ? And please clarify if the rules are different in C and C ++.
source
share