About: Function prototype     Goto   Sponge   NotDistinct   Permalink

An Entity of Type : yago:WikicatProgrammingConstructs, within Data Space : dbpedia.org associated with source document(s)
QRcode icon
http://dbpedia.org/describe/?url=http%3A%2F%2Fdbpedia.org%2Fresource%2FFunction_prototype

In computer programming, a function prototype or function interface is a declaration of a function that specifies the function’s name and type signature (arity, data types of parameters, and return type), but omits the function body. While a function definition specifies how the function does what it does (the "implementation"), a function prototype merely specifies its interface, i.e. what data types go in and come out of it. The term "function prototype" is particularly used in the context of the programming languages C and C++ where placing forward declarations of functions in header files allows for splitting a program into translation units, i.e. into parts that a compiler can separately translate into object files, to be combined by a linker into an executable or a library.

AttributesValues
rdf:type
rdfs:label
  • Funktionsprototyp (de)
  • Function prototype (en)
  • 関数プロトタイプ (ja)
  • Prototyp (oprogramowanie) (pl)
  • Protótipo de função (pt)
  • Прототип функции (ru)
  • Прототип функції (uk)
  • 函数原型 (zh)
rdfs:comment
  • Als Funktionsprototyp oder Funktionskopf bezeichnet man in verschiedenen Programmiersprachen (vor allem C und C++) die Deklaration einer Funktion – inklusive Angaben über Anzahl und Typ der Parameter und Typ des Rückgabewertes – getrennt von ihrer Implementierung (Definition). Man spricht auch ungenau von der Vorausdeklaration (englisch: forward declaration, oft falsch als „Vorwärtsdeklaration“ übersetzt) einer Funktion, diese muss aber nicht in jedem Fall einen vollwertigen Funktionsprototypen darstellen. Beispiel: int funktion; wäre in C eine gültige Vorausdeklaration, aber kein Prototyp, da keinerlei Angaben über Funktionsparameter gemacht werden. Jede Definition einer Funktion liefert hingegen automatisch immer auch eine Prototypdeklaration für nachfolgenden Programmcode. (de)
  • 関数プロトタイプ(英: function prototype)は、C言語やC++における関数の宣言であり、関数本体を省略して、関数名、アリティ、引数のデータ型、返り値のデータ型を示したもの。関数定義は関数が何をするかを示すが、関数プロトタイプはそのインタフェースを示すと考えることができる。 プロトタイプでは、引数の名前はオプションだが、その型指定は必須である。ただしCでは引数指定を空にすることで、未知(任意)とすることもできる。 (ja)
  • Prototyp — struktura oprogramowania, która informuje kompilator lub interpreter języka programowania o możliwościach podprogramu (funkcja, procedura, metoda) lub klasy. Prototyp jest więc deklaracją oddzieloną od definicji w postaci samodzielnego nagłówka podprogramu. (pl)
  • Прототипом функции в языке Си или C++ называется объявление функции, не содержащее тела функции, но указывающее имя функции, арность, типы аргументов и возвращаемый тип данных. В то время как определение функции описывает, что именно делает функция, прототип функции может восприниматься как описание её интерфейса. В прототипе имена аргументов являются необязательными, тем не менее, необходимо указывать тип вместе со всеми модификаторами (например, указатель ли это или константный аргумент). (ru)
  • 在计算机编程中,函数原型(英語:Function prototype)或函数接口(英語:Function interface)是用于指定函数的名称和类型签名(元数,参数的数据类型和返回值类型)的一种省略了函数体的函数。虽然函数声明规定了函数是如何被实现的,但仅包括对接口的定义(即接受的数据类型和返回的数据类型),并不包括对函数体的定义。 函数原型被广泛应用于C、C++ 语言程序代码的上下文中,通过在头文件中放置函数的前向声明来允许将代码拆分为多个。即编译器可以单独编译目标文件的这部分内容,然后由链接器组合成可执行文件或库。现代编译器(如)不再需要函数原型,因为这些是在编译时被确定和声明的。 在原型中,参数名是可选的(C/C++中存在函数原型作用域,这使参数名的作用域被限制在函数定义内),但是,类型和修饰符都是必需的(如指针或常量参数)。 在面向对象编程中, 接口和抽象方法的目的与此类似。 (zh)
  • In computer programming, a function prototype or function interface is a declaration of a function that specifies the function’s name and type signature (arity, data types of parameters, and return type), but omits the function body. While a function definition specifies how the function does what it does (the "implementation"), a function prototype merely specifies its interface, i.e. what data types go in and come out of it. The term "function prototype" is particularly used in the context of the programming languages C and C++ where placing forward declarations of functions in header files allows for splitting a program into translation units, i.e. into parts that a compiler can separately translate into object files, to be combined by a linker into an executable or a library. (en)
  • Um protótipo de função ou declaração de função, nas linguagens de programação C e C++, é uma declaração de uma função que omite o corpo mas especifica o seu nome, aridade, tipos de argumentos e tipo de retorno. Um protótipo de função pode ser entendido como a especificação da sua interface. (pt)
  • Прототип функції — декларація функції в деяких мовах програмування, при якій вказується тільки її назва, тип та кількість і типи її аргументів. Таке оголошення необхідне і достатнє для компілятора при створенні правильного об'єктного коду. Оголошення прототипів функцій стандартних бібліотек С та С++ поміщені в спеціальні заголовні файли, які приєднуються до програми препроцесором на першому етапі компілювання. (uk)
dcterms:subject
Wikipage page ID
Wikipage revision ID
Link from a Wikipage to another Wikipage
Link from a Wikipage to an external page
sameAs
dbp:wikiPageUsesTemplate
has abstract
  • Als Funktionsprototyp oder Funktionskopf bezeichnet man in verschiedenen Programmiersprachen (vor allem C und C++) die Deklaration einer Funktion – inklusive Angaben über Anzahl und Typ der Parameter und Typ des Rückgabewertes – getrennt von ihrer Implementierung (Definition). Man spricht auch ungenau von der Vorausdeklaration (englisch: forward declaration, oft falsch als „Vorwärtsdeklaration“ übersetzt) einer Funktion, diese muss aber nicht in jedem Fall einen vollwertigen Funktionsprototypen darstellen. Beispiel: int funktion; wäre in C eine gültige Vorausdeklaration, aber kein Prototyp, da keinerlei Angaben über Funktionsparameter gemacht werden. Jede Definition einer Funktion liefert hingegen automatisch immer auch eine Prototypdeklaration für nachfolgenden Programmcode. (de)
  • In computer programming, a function prototype or function interface is a declaration of a function that specifies the function’s name and type signature (arity, data types of parameters, and return type), but omits the function body. While a function definition specifies how the function does what it does (the "implementation"), a function prototype merely specifies its interface, i.e. what data types go in and come out of it. The term "function prototype" is particularly used in the context of the programming languages C and C++ where placing forward declarations of functions in header files allows for splitting a program into translation units, i.e. into parts that a compiler can separately translate into object files, to be combined by a linker into an executable or a library. In a prototype, parameter names are optional (and in C/C++ have function prototype scope, meaning their scope ends at the end of the prototype), however, the type is necessary along with all modifiers (e.g. if it is a pointer or a reference to const parameter) except const alone. In object-oriented programming, interfaces and abstract methods serve much the same purpose. (en)
  • 関数プロトタイプ(英: function prototype)は、C言語やC++における関数の宣言であり、関数本体を省略して、関数名、アリティ、引数のデータ型、返り値のデータ型を示したもの。関数定義は関数が何をするかを示すが、関数プロトタイプはそのインタフェースを示すと考えることができる。 プロトタイプでは、引数の名前はオプションだが、その型指定は必須である。ただしCでは引数指定を空にすることで、未知(任意)とすることもできる。 (ja)
  • Um protótipo de função ou declaração de função, nas linguagens de programação C e C++, é uma declaração de uma função que omite o corpo mas especifica o seu nome, aridade, tipos de argumentos e tipo de retorno. Um protótipo de função pode ser entendido como a especificação da sua interface. A definição da função, em contrapartida, é a estrutura que além de conter a as informações de interface aqui descritas, possui o corpo onde é especificado o que a função realiza, O conceito de protótipo de função foi proposto originalmente na linguagem C++ e foi adotado posteriormente no padrão ANSI C da linguagem C. (pt)
  • Prototyp — struktura oprogramowania, która informuje kompilator lub interpreter języka programowania o możliwościach podprogramu (funkcja, procedura, metoda) lub klasy. Prototyp jest więc deklaracją oddzieloną od definicji w postaci samodzielnego nagłówka podprogramu. (pl)
  • Прототипом функции в языке Си или C++ называется объявление функции, не содержащее тела функции, но указывающее имя функции, арность, типы аргументов и возвращаемый тип данных. В то время как определение функции описывает, что именно делает функция, прототип функции может восприниматься как описание её интерфейса. В прототипе имена аргументов являются необязательными, тем не менее, необходимо указывать тип вместе со всеми модификаторами (например, указатель ли это или константный аргумент). (ru)
  • Прототип функції — декларація функції в деяких мовах програмування, при якій вказується тільки її назва, тип та кількість і типи її аргументів. Таке оголошення необхідне і достатнє для компілятора при створенні правильного об'єктного коду. Необхідність у оголошенні прототипу функції перед визначенням її реального коду виникає при складних вкладених викликах однієї функції в іншій. Декларація прототипу дозволяє програмісту уникнути прослідковування послідовності написання функцій в програмі. Крім того, реальний код функції може знаходитися в окремій, уже відкомпільованій бібліотеці, що підключається до програми компонувальником. Оголошення прототипів функцій стандартних бібліотек С та С++ поміщені в спеціальні заголовні файли, які приєднуються до програми препроцесором на першому етапі компілювання. (uk)
  • 在计算机编程中,函数原型(英語:Function prototype)或函数接口(英語:Function interface)是用于指定函数的名称和类型签名(元数,参数的数据类型和返回值类型)的一种省略了函数体的函数。虽然函数声明规定了函数是如何被实现的,但仅包括对接口的定义(即接受的数据类型和返回的数据类型),并不包括对函数体的定义。 函数原型被广泛应用于C、C++ 语言程序代码的上下文中,通过在头文件中放置函数的前向声明来允许将代码拆分为多个。即编译器可以单独编译目标文件的这部分内容,然后由链接器组合成可执行文件或库。现代编译器(如)不再需要函数原型,因为这些是在编译时被确定和声明的。 在原型中,参数名是可选的(C/C++中存在函数原型作用域,这使参数名的作用域被限制在函数定义内),但是,类型和修饰符都是必需的(如指针或常量参数)。 在面向对象编程中, 接口和抽象方法的目的与此类似。 (zh)
gold:hypernym
prov:wasDerivedFrom
page length (characters) of wiki page
foaf:isPrimaryTopicOf
is differentFrom of
is rdfs:seeAlso of
is Link from a Wikipage to another Wikipage of
Faceted Search & Find service v1.17_git139 as of Feb 29 2024


Alternative Linked Data Documents: ODE     Content Formats:   [cxml] [csv]     RDF   [text] [turtle] [ld+json] [rdf+json] [rdf+xml]     ODATA   [atom+xml] [odata+json]     Microdata   [microdata+json] [html]    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3330 as of Mar 19 2024, on Linux (x86_64-generic-linux-glibc212), Single-Server Edition (61 GB total memory, 44 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software