Declaration (computer programming)
In computer programming, a declaration is a language construct specifying identifier properties: it declares a word's (identifier's) meaning. Declarations are most commonly used for functions, variables, constants, and classes, but can also be used for other entities such as enumerations and type definitions. Beyond the name (the identifier itself) and the kind of entity (function, variable, etc.), declarations typically specify the data type (for variables and constants), or the type signature (for functions); types may also include dimensions, such as for arrays. A declaration is used to announce the existence of the entity to the compiler; this is important in those strongly typed languages that require functions, variables, and constants, and their types to be specified with a declarat
- Comment
- enIn computer programming, a declaration is a language construct specifying identifier properties: it declares a word's (identifier's) meaning. Declarations are most commonly used for functions, variables, constants, and classes, but can also be used for other entities such as enumerations and type definitions. Beyond the name (the identifier itself) and the kind of entity (function, variable, etc.), declarations typically specify the data type (for variables and constants), or the type signature (for functions); types may also include dimensions, such as for arrays. A declaration is used to announce the existence of the entity to the compiler; this is important in those strongly typed languages that require functions, variables, and constants, and their types to be specified with a declarat
- Date
- enDecember 2013
- Has abstract
- enIn computer programming, a declaration is a language construct specifying identifier properties: it declares a word's (identifier's) meaning. Declarations are most commonly used for functions, variables, constants, and classes, but can also be used for other entities such as enumerations and type definitions. Beyond the name (the identifier itself) and the kind of entity (function, variable, etc.), declarations typically specify the data type (for variables and constants), or the type signature (for functions); types may also include dimensions, such as for arrays. A declaration is used to announce the existence of the entity to the compiler; this is important in those strongly typed languages that require functions, variables, and constants, and their types to be specified with a declaration before use, and is used in forward declaration. The term "declaration" is frequently contrasted with the term "definition", but meaning and usage varies significantly between languages; see below. Declarations are particularly prominent in languages in the ALGOL tradition, including the BCPL family, most prominently C and C++, and also Pascal. Java uses the term "declaration", though Java does not require separate declarations and definitions.
- Is primary topic of
- Declaration (computer programming)
- Label
- enDeclaration (computer programming)
- Link from a Wikipage to an external page
- msdn.microsoft.com/en-us/library/0e5kx78b.aspx
- publications.gbdirect.co.uk/c_book/chapter8/declarations_and_definitions.html
- www.cprogramming.com/declare_vs_define.html
- Link from a Wikipage to another Wikipage
- Abstract method
- ALGOL
- Array data structure
- BCPL
- C (programming language)
- C++
- Category:Articles with example C code
- Category:Programming language concepts
- Class (computer programming)
- Compiler
- Compile time
- Computer programming
- Constant (computer programming)
- Data type
- Enumerator (computer science)
- Forward declaration
- Function prototype
- Header file
- Identifier (computer programming)
- Implementation
- Information hiding
- Initialization (programming)
- Instance (computer science)
- Java (programming language)
- Java 8
- JavaScript
- Language construct
- Library (computing)
- Name binding
- One Definition Rule
- Pascal (programming language)
- Perl
- Python (programming language)
- Scope (programming)
- Source file
- Strongly typed
- Subroutine
- Type signature
- Variable (computer science)
- Visual Basic
- Reason
- enToo many examples of unclear relevancy; not enough references; problematic mentions of header files and multiple declarations
- SameAs
- Declaração (informática)
- Declaration (computer programming)
- Déclaration (informatique)
- Deklarace (programování)
- Deklaracija (računarstvo)
- Deklaracja (informatyka)
- Deklaration (Programmierung)
- Deklaro (programlingva)
- ESdj
- Khai báo (khoa học máy tính)
- m.0bxfqb
- Q1183659
- Изјава (информатика)
- Объявление (информатика)
- اعلان (برنامهنویسی رایانهای)
- 聲明 (編程)
- Subject
- Category:Articles with example C code
- Category:Programming language concepts
- WasDerivedFrom
- Declaration (computer programming)?oldid=1106990243&ns=0
- WikiPageLength
- 8287
- Wikipage page ID
- 4329406
- Wikipage revision ID
- 1106990243
- WikiPageUsesTemplate
- Template:Cleanup
- Template:Efn
- Template:Main
- Template:Notelist
- Template:Reflist
- Template:Short description