Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unqualified version of type in ANSI C

Tags:

c

The Constraints portion of Section 6.3.2.2 of the ANSI C Standard includes the phrase:

Each argument shall have a type such that its value may be assigned to an object with the unqualified version of the type of its corresponding parameter.


Then, What the term 'unqualified version of type' means?

like image 999
silentboy Avatar asked Sep 17 '25 05:09

silentboy


1 Answers

The C99 draft contains the following language, about the use of the word "qualified":

Any type so far mentioned is an unqualified type. Each unqualified type has several qualified versions of its type, corresponding to the combinations of one, two, or all three of the const, volatile, and restrict qualifiers.

The qualified or unqualified versions of a type are distinct types that belong to the same type category and have the same representation and alignment requirements.

So your quote says that an argument having a const int must match a value of type int, and so on.

like image 157
unwind Avatar answered Sep 19 '25 10:09

unwind