Content deleted Content added
→C++ convention: this is the c++ section of the article |
Taumata994 (talk | contribs) Importing Wikidata short description: "Type qualifier" (Shortdesc helper) |
||
Line 1:
{{short description|Type qualifier}}
{{lowercase title}}
In the [[C (programming language)|C]], [[C++]], [[D (programming language)|D]], [[JavaScript]] and [[Julia (programming language)|Julia]] [[programming language]]s, '''const''' is a [[type qualifier]]:{{efn|In D the term ''type constructor'' is used instead of ''type qualifier,'' by analogy with [[Constructor (object-oriented programming)|constructors in object-oriented programming]].}} a [[Keyword (computer programming)|keyword]] applied to a [[data type]] that indicates that the data is read only. While this can be used to declare [[Constant (computer programming)|constants]], <code>const</code> in the C family of languages differs from similar constructs in other languages in being part of the ''type,'' and thus has complicated behavior when combined with [[Pointer (computer programming)|pointers]], references, [[composite data type]]s, and type-checking.
|