An Entity of Type: WikicatProgrammingLanguageConcepts, from Named Graph: http://dbpedia.org, within Data Space: dbpedia.org

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

Property Value
dbo:abstract
  • Deklarace je v informatice zápis, kterým se v počítačovém programu zavádí jméno (identifikátor) a zpravidla určuje jeho datový typ a další aspekty pro proměnné, funkce (procedury), konstanty apod. Překladač je tak informován o příslušném objektu. V jazycích se silnou typovou kontrolou, jako je Pascal, C nebo Ada, je nutné všechny objekty deklarovat dříve, než jsou použity v programu. (cs)
  • En multaj programlingvoj, deklaro estas frazo informanta tradukilon pri ekzisto kaj ecoj de programa objekto (variablo, proceduro ktp), indikante: * ĝian nomon; * ĝian datumtipon; * la formalajn parametrojn (en deklaro de proceduro ktp). Multaj programlingvoj (interalie C) postuals, ke la nomoj estu deklaritaj antaŭ ilia uzo (laŭ la teksta ordo de la programo). (eo)
  • 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 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. (en)
  • In der Informatik und Programmierung ist eine Deklaration die Festlegung von Dimension, Bezeichner, Datentyp und weiteren Aspekten einer Variable oder eines Unterprogramms. Durch die Deklaration wird dem Übersetzer (Compiler oder Interpreter) diese Variable bzw. dieses Unterprogramm bekannt gemacht; es ist damit möglich, diese an anderen Stellen im selben Quelltext zu verwenden. Häufig werden die Ausdrücke Deklaration und Definition mit der allgemeinen Bedeutung „Daten/Datenstrukturen/Datentypen festlegen/beschreiben“ als Synonyme verwendet. Beispiele siehe „eigene Datentypen definieren“ in, „definierte Variable“ in oder „definieren einer Klasse“ in Klasse. Programmiersprachenabhängig werden diese Begriffe jedoch zum Teil auch unterschiedlich verwendet. So werden zum Beispiel in Haskell per Deklaration auch Funktionen spezifiziert, in den Programmiersprachen C++ und C wird dies ‚Definition‘ genannt. ‚Definition‘ wird dabei als Sonderfall der Deklaration verstanden. Bei Variablen spricht man von Definition, wenn der Übersetzer Code erzeugt, der entweder statisch (im Datensegment) oder dynamisch (zur Laufzeit) Speicherplatz für diese Variable reserviert. Bei Unterprogrammen spricht man von Definition, wenn an dieser Stelle der Quelltext des Unterprogramms angegeben ist. Die Deklaration eines Unterprogramms ohne Definition wird auch oft als Prototyp bezeichnet. Bei der Referenzierung einer deklarierten (nicht definierten) Variable bzw. Unterprogrammes überprüft der Linker, dass die Variable bzw. das Unterprogramm an anderer Stelle definiert wurde und verknüpft die Referenzen mit der Definition. Erst nach der Deklaration kann einer Variablen ein Ausdruck zugewiesen werden. Neben der expliziten Deklaration gibt es in einigen Programmiersprachen (z. B. Fortran, BASIC, PL/I) aber auch die Möglichkeit einer impliziten Deklaration von Variablen: In diesem Fall führt das erste Auftreten einer Variablen zu einer automatischen Typzuordnung. (de)
  • En programmation informatique, la déclaration permet d'indiquer au compilateur l'existence d'une (variable, routine, etc.) , en spécifiant: * son identifiant; * son type de données (dans le cas d'un langage de programmation typé); * l'identifiant et le type de données de chaque paramètre (dans le cas d'une routine d'un langage de programmation typé). Avec certains langages de programmation, notamment le langage C/C++, il est nécessaire de déclarer les entités informatiques avant de pouvoir les utiliser. (fr)
  • Deklaracja – konstrukcja programistyczna w określonym języku programowania, służąca związaniu z określonym identyfikatorem jego znaczenia i atrybutów. (pl)
  • Em linguagens de programação, uma declaração especifica o identificador, , e outros aspectos dos elementos de linguagem, tais como variáveis e funções. Ele é usado para anunciar a existência do elemento para o compilador, o que é importante em muitas línguas (como C) que necessitam de variáveis declaradas, antes de usá-las. Na família de linguagens BCPL, tais como C++ e Java, também pode-se especificar a dimensão das variáveis para declarar um escalar, array ou matriz. Nesta família, as declarações, que anunciam a existência e as propriedades do elemento, e as definições (provendo a real) podem ser feitas independentemente da outra. As declarações são geralmente feitas em arquivos de cabeçalho, que são destinados a ser incluídos em outros arquivos que fazem referência e usam essas declarações, mas não tem acesso à definição. Se um tipo de definição não coincide com a declaração anterior para o mesmo elemento, a situação gera um erro de compilação. Para variáveis, definições atribuem valores a uma área de memória que foi reservada durante a fase da declaração. Para as funções, definições suprem o corpo da função. Enquanto que uma variável ou função pode ser declarada, muitas vezes, elas são tipicamente definidas uma vez. No entanto, linguagens dinâmicas, como Javascript ou Python permitem a redefinição de funções. A declaração é muitas vezes usada para se acessar funções e variáveis definidas em arquivos de origem diferente, ou em um biblioteca. Alguns exemplos de declarações que não são definições, em C: extern char example1;extern int example2;void example3(void); Alguns exemplos de definições, em C: char example1;int example2 = 5;void example3(void){ int x = 7;} (pt)
  • В языках программирования объявле́ние (англ. declaration) включает в себя указание идентификатора, типа, а также других аспектов элементов языка, например, переменных и функций. Объявление используется, чтобы уведомить компилятор о существовании элемента; это весьма важно для многих языков (например, таких как Си), требующих объявления переменных перед их использованием. (ru)
  • 在计算机编程中,声明是一种指定标识符属性的语言结构。 声明最常用于子程序、变量、常量和类,但也可用于其他实体,例如枚举。 声明通常還能指定資料類型(对于变量和常量)以及类型签名(对于函数) 。 (zh)
dbo:wikiPageExternalLink
dbo:wikiPageID
  • 4329406 (xsd:integer)
dbo:wikiPageLength
  • 8287 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID
  • 1106990243 (xsd:integer)
dbo:wikiPageWikiLink
dbp:date
  • December 2013 (en)
dbp:reason
  • Too many examples of unclear relevancy; not enough references; problematic mentions of header files and multiple declarations (en)
dbp:wikiPageUsesTemplate
dcterms:subject
rdf:type
rdfs:comment
  • Deklarace je v informatice zápis, kterým se v počítačovém programu zavádí jméno (identifikátor) a zpravidla určuje jeho datový typ a další aspekty pro proměnné, funkce (procedury), konstanty apod. Překladač je tak informován o příslušném objektu. V jazycích se silnou typovou kontrolou, jako je Pascal, C nebo Ada, je nutné všechny objekty deklarovat dříve, než jsou použity v programu. (cs)
  • En multaj programlingvoj, deklaro estas frazo informanta tradukilon pri ekzisto kaj ecoj de programa objekto (variablo, proceduro ktp), indikante: * ĝian nomon; * ĝian datumtipon; * la formalajn parametrojn (en deklaro de proceduro ktp). Multaj programlingvoj (interalie C) postuals, ke la nomoj estu deklaritaj antaŭ ilia uzo (laŭ la teksta ordo de la programo). (eo)
  • En programmation informatique, la déclaration permet d'indiquer au compilateur l'existence d'une (variable, routine, etc.) , en spécifiant: * son identifiant; * son type de données (dans le cas d'un langage de programmation typé); * l'identifiant et le type de données de chaque paramètre (dans le cas d'une routine d'un langage de programmation typé). Avec certains langages de programmation, notamment le langage C/C++, il est nécessaire de déclarer les entités informatiques avant de pouvoir les utiliser. (fr)
  • Deklaracja – konstrukcja programistyczna w określonym języku programowania, służąca związaniu z określonym identyfikatorem jego znaczenia i atrybutów. (pl)
  • В языках программирования объявле́ние (англ. declaration) включает в себя указание идентификатора, типа, а также других аспектов элементов языка, например, переменных и функций. Объявление используется, чтобы уведомить компилятор о существовании элемента; это весьма важно для многих языков (например, таких как Си), требующих объявления переменных перед их использованием. (ru)
  • 在计算机编程中,声明是一种指定标识符属性的语言结构。 声明最常用于子程序、变量、常量和类,但也可用于其他实体,例如枚举。 声明通常還能指定資料類型(对于变量和常量)以及类型签名(对于函数) 。 (zh)
  • 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 (en)
  • In der Informatik und Programmierung ist eine Deklaration die Festlegung von Dimension, Bezeichner, Datentyp und weiteren Aspekten einer Variable oder eines Unterprogramms. Durch die Deklaration wird dem Übersetzer (Compiler oder Interpreter) diese Variable bzw. dieses Unterprogramm bekannt gemacht; es ist damit möglich, diese an anderen Stellen im selben Quelltext zu verwenden. (de)
  • Em linguagens de programação, uma declaração especifica o identificador, , e outros aspectos dos elementos de linguagem, tais como variáveis e funções. Ele é usado para anunciar a existência do elemento para o compilador, o que é importante em muitas línguas (como C) que necessitam de variáveis declaradas, antes de usá-las. A declaração é muitas vezes usada para se acessar funções e variáveis definidas em arquivos de origem diferente, ou em um biblioteca. Alguns exemplos de declarações que não são definições, em C: extern char example1;extern int example2;void example3(void); (pt)
rdfs:label
  • Deklarace (programování) (cs)
  • Deklaration (Programmierung) (de)
  • Deklaro (programlingva) (eo)
  • Declaration (computer programming) (en)
  • Déclaration (informatique) (fr)
  • Deklaracja (informatyka) (pl)
  • Declaração (informática) (pt)
  • Объявление (информатика) (ru)
  • 聲明 (編程) (zh)
owl:sameAs
prov:wasDerivedFrom
foaf:isPrimaryTopicOf
is dbo:wikiPageDisambiguates of
is dbo:wikiPageRedirects of
is dbo:wikiPageWikiLink of
is foaf:primaryTopic of
Powered by OpenLink Virtuoso    This material is Open Knowledge     W3C Semantic Web Technology     This material is Open Knowledge    Valid XHTML + RDFa
This content was extracted from Wikipedia and is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License