What would be the definition of qualifier in c language

Thread Starter

skyr6546

Joined Mar 22, 2019
73
Hello friends

Qualifiers and storage class are smaller but important programming concept. storage class which decides scope, visibility and lifetime of that variable.

I do not want to know their types. I know const, volatile, short, long, signed, unsigned are the qualifier in c language.

Can anyone explain what would be the definition of qualifier in c language?

sky
 

Papabravo

Joined Feb 24, 2006
21,227
Hello friends

Qualifiers and storage class are smaller but important programming concept. storage class which decides scope, visibility and lifetime of that variable.

I do not want to know their types. I know const, volatile, short, long, signed, unsigned are the qualifier in c language.

Can anyone explain what would be the definition of qualifier in c language?

sky
Same as an adjective: it modifies the noun.
 

nsaspook

Joined Aug 27, 2009
13,312
Why are you kidding ??
He's not kidding. Type qualification in C is exactly that. What the qualifier does is language dependent. In C and in human languages ({baking...eating type} apple) it modifies a thing by the definition (language specification) of the adjective.

Search this link for qualifier.
http://eli-project.sourceforge.net/c_html/c.html
http://eli-project.sourceforge.net/c_html/c.html#s6.5.3
http://eli-project.sourceforge.net/c_html/c.html#s10.1.3
 
Last edited:

Thread Starter

skyr6546

Joined Mar 22, 2019
73
He's not kidding. Type qualification in C is exactly that. What the qualifier does is language dependent. In C and in human languages ({baking...eating type} apple) it modifies a thing by the definition (language specification) of the adjective.
How is this definition?

The keywords which are used to change the properties of a variable is called qualifiers.
 

Papabravo

Joined Feb 24, 2006
21,227
How is this definition?

The keywords which are used to change the properties of a variable is called qualifiers.
It is a definition like any other definition. It tells you what the thing being defined does, both syntactically and semantically. In a natural language the qualifier or adjective has to appear in proximity to the thing it is connected to. In some languages the word endings help to match qualifiers (adjectives) with the objects (nouns) they modify. I don't know if "C" allows you to reverse the order of qualifier and object as in in
short unsigned as opposed to unsigned short. I don't think I have ever seen any code that uses the former construction. The syntax rule says a qualifier must precede the object it modifies.

FWIW -- I never kid about stuff like this and I'm insulted you would think that.
 
Top