The void type, in several programming languages derived from C and Algol68, is the type for the result of a function that does not return a result. Usually such functions are called for their side effects. The void types serves the same purpose of the syntactic constructs which define subroutines in Visual Basic and procedures in Pascal.

PropertyValue
dbpprop:abstract
  • The void type, in several programming languages derived from C and Algol68, is the type for the result of a function that does not return a result. Usually such functions are called for their side effects. The void types serves the same purpose of the syntactic constructs which define subroutines in Visual Basic and procedures in Pascal. In such situations, the void type serves a similar purpose to that of the unit type from functional programming languages; 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 void *), 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.
  • Das Substantiv Void (engl. für null‚ nichtig, ungültig) bezeichnet einen Datentyp in der Informatik, der – im Gegensatz zur üblichen Rolle eines Datentyps – keine Werte speichert. Dieser tritt häufig in den höheren Programmiersprachen wie C bzw. C++, Java oder PHP auf. Er dient dazu, Formalismen, bei denen ein Datentyp angegeben wird, auch dann benutzen zu können, wenn an der entsprechenden Stelle keine Daten verwendet werden, oder um einen möglichst unspezifizierten Typ angeben zu können, wenn die Angabe keine Rolle spielt. Beispielsweise kann man prozedurenähnliche Funktionen schaffen, indem man void als Typ für ihren Rückgabewert festlegt.
  • 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.
  • 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 (język C) Definiowania wskaźników na dane nieokreślonego typu (języki C i C++).
  • void — тип, спецификатор типа и ключевое слово в языках программирования Си, Си++, Java, C# и D, заимствованное у их общего предшественника Алгола 68.
dbpprop:hasPhotoCollection
dbpprop:otheruses4Property
dbpprop:reference
dbpprop:wikiPageUsesTemplate
rdf:type
rdfs:comment
  • The void type, in several programming languages derived from C and Algol68, is the type for the result of a function that does not return a result. Usually such functions are called for their side effects. The void types serves the same purpose of the syntactic constructs which define subroutines in Visual Basic and procedures in Pascal.
  • Das Substantiv Void (engl. für null‚ nichtig, ungültig) bezeichnet einen Datentyp in der Informatik, der – im Gegensatz zur üblichen Rolle eines Datentyps – keine Werte speichert. Dieser tritt häufig in den höheren Programmiersprachen wie C bzw. C++, Java oder PHP auf.
  • 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.
  • 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.
  • void — тип, спецификатор типа и ключевое слово в языках программирования Си, Си++, Java, C# и D, заимствованное у их общего предшественника Алгола 68.
rdfs:label
  • Void type
  • Void (Datentyp)
  • Void
  • Pusty typ danych
  • Void
owl:sameAs
skos:subject
foaf:page
is dbpprop:redirect of
is owl:sameAs of