The void type, in several programming languages derived from C and Algol68, is the type for the result of a function that returns normally, but does not provide a result value to its caller. Usually such functions are called for their side effects, such as performing some task or writing to their output parameters. The usage of the void type in such context is comparable to that of the syntactic constructs which define subroutines in Visual Basic and procedures in Pascal.

PropertyValue
dbpedia-owl:abstract
  • Das Schlüsselwort void (engl. für „nichtig“, „ungültig“, „leer“) wird in einigen Programmiersprachen anstelle eines Datentyps benutzt, um anzugeben, dass keine Daten übergeben werden oder der Typ der Daten nicht angegeben ist. Syntaktisch wird wie ein Datentyp behandelt, aber es kann nur an bestimmten Stellen stehen. So ist es ist zum Beispiel nicht möglich, eine Variable vom Type zu deklarieren.
  • The void type, in several programming languages derived from C and Algol68, is the type for the result of a function that returns normally, but does not provide a result value to its caller. Usually such functions are called for their side effects, such as performing some task or writing to their output parameters. The usage of the void type in such context is comparable to that of the syntactic constructs which define subroutines in Visual Basic and procedures in Pascal. It is also similar to the unit type used in functional programming languages and type theory; however, there are some differences in allowable usage, in that the void type is taken to be an empty type with no values. See Unit type#In programming languages for a comparison. C and C++ also support the pointer to void type (specified as), but this is an unrelated notion. Variables of this type are pointers to data of an unspecified type, so in this context (but not the others) void acts as a universal or top type. A program can convert a pointer to any type of data to a pointer to void and back to the original type without losing information, which makes these pointers useful for polymorphic functions (note that this is not particularly true for function pointers because functions are not data).
  • Pusty typ danych (ang. void, void type), w informatyce to typ danych, którego zmienna niesie zerową informację, czyli, zgodnie z teorią informacji, matematyczna klasa wszystkich wartości zmiennych tego typu zawiera dokładnie jeden element. Wprowadzenie takiego typu do systemu typów języka programowania umożliwia pewne rodzaje uogólnień - nie trzeba rozróżniać funkcji, które zwracają wartość, od tych, które jej nie zwracają (czyli zwracają wartość typu pustego), oraz funkcji, które pobierają jakiś argument, od tych, które tego nie robią. Typ pusty stosowany jest głównie do: Wskazania, że funkcja nie zwraca wyniku (języki C, C++). Wskazania, że funkcja nie pobiera żadnych argumentów (konieczne w języku C, opcjonalne w C++) Definiowania wskaźników na dane nieokreślonego typu (języki C i C++).
  • void — тип, спецификатор типа и ключевое слово в языках программирования Си, Си++, Java, C#, D и ActionScript заимствованное у их общего предшественника Алгола 68.
  • En programmation, void est un mot-clé que l'on retrouve dans le langage C et plusieurs autres langages de programmation dont il est à l'origine, comme le C++, le C# ou le Java. Ce mot-clé void peut être utilisé là où se place habituellement le type de retour d'une fonction, comme par exemple int pour un entier ou string pour une chaîne de caractères. Lorsque le programmeur écrit void, cela permet d'indiquer au compilateur que la fonction ne renvoie rien. Ce type de fonction n'existe pas dans certains langages de programmation car elles doivent absolument renvoyer un objet dont le type est précisé. Cependant cette notion de fonction sans retour existe tout de même, par exemple en Pascal ou en Visual Basic, on les retrouve sous le nom de procédure. En algorithmique, elles sont désignées par le terme d'action. Le mot clé void peut également être utilisé pour déclarer un pointeur universel comme un pointeur de fonction.
dcterms:subject
rdf:type
rdfs:comment
  • Das Schlüsselwort void (engl. für „nichtig“, „ungültig“, „leer“) wird in einigen Programmiersprachen anstelle eines Datentyps benutzt, um anzugeben, dass keine Daten übergeben werden oder der Typ der Daten nicht angegeben ist. Syntaktisch wird wie ein Datentyp behandelt, aber es kann nur an bestimmten Stellen stehen. So ist es ist zum Beispiel nicht möglich, eine Variable vom Type zu deklarieren.
  • void — тип, спецификатор типа и ключевое слово в языках программирования Си, Си++, Java, C#, D и ActionScript заимствованное у их общего предшественника Алгола 68.
  • The void type, in several programming languages derived from C and Algol68, is the type for the result of a function that returns normally, but does not provide a result value to its caller. Usually such functions are called for their side effects, such as performing some task or writing to their output parameters. The usage of the void type in such context is comparable to that of the syntactic constructs which define subroutines in Visual Basic and procedures in Pascal.
  • Pusty typ danych (ang. void, void type), w informatyce to typ danych, którego zmienna niesie zerową informację, czyli, zgodnie z teorią informacji, matematyczna klasa wszystkich wartości zmiennych tego typu zawiera dokładnie jeden element.
  • En programmation, void est un mot-clé que l'on retrouve dans le langage C et plusieurs autres langages de programmation dont il est à l'origine, comme le C++, le C# ou le Java. Ce mot-clé void peut être utilisé là où se place habituellement le type de retour d'une fonction, comme par exemple int pour un entier ou string pour une chaîne de caractères. Lorsque le programmeur écrit void, cela permet d'indiquer au compilateur que la fonction ne renvoie rien.
rdfs:label
  • Void (Schlüsselwort)
  • Void
  • Void type
  • Pusty typ danych
  • Void
owl:sameAs
foaf:page
is dbpedia-owl:wikiPageDisambiguates of
is dbpedia-owl:wikiPageRedirects of
is owl:sameAs of
is foaf:primaryTopic of