Région de recherche :

Date :

https://www.learncpp.com › cpp-tutorial › void

4.2 — Void – Learn C++ - LearnCpp.com

Void is typically used in several different contexts. Functions that do not return a value. Most commonly, void is used to indicate that a function does not return a value: void writeValue(int x) // void here means no return value { .

https://stackoverflow.com › questions › 1043034

What does void mean in C, C++, and C#? - Stack Overflow

There are 3 basic ways that void is used: Function argument: int myFunc (void) -- the function takes nothing. Function return value: void myFunc (int) -- the function returns nothing. Generic data pointer: void* data -- 'data' is a pointer to data of unknown type, and cannot be dereferenced.

https://developer.mozilla.org › fr › docs › Web › JavaScript › Reference › Operators › void

L'opérateur void - JavaScript | MDN - MDN Web Docs

L' opérateur void permet d'évaluer une expression donnée et de renvoyer undefined. Exemple interactif. Syntaxe. js. void expression; Description. Cet opérateur permet d'évaluer des expressions retournant une valeur là où on attend une expression qui vaut undefined.

https://www.c-programming-simple-steps.com › what-is-void.html

What is void in C - C Programming Simple Steps

void. What is void in C programming? It means “no type”, “no value” or “no parameters”, depending on the context. We use it to indicate that: a function does not return value. a function does not accept parameters. a pointer does not have a specific type and could point to different types. A void function does not return a value.

https://learn.microsoft.com › en-us › cpp › cpp › void-cpp

void (C++) | Microsoft Learn

When used as a function return type, the void keyword specifies that the function doesn't return a value. When used for a function's parameter list, void specifies that the function takes no parameters.

https://www.geeksforgeeks.org › void-pointer-c-cpp

void Pointer in C - GeeksforGeeks

void pointers in C are used to implement generic functions in C. For example, compare function which is used in qsort() . void pointers used along with Function pointers of type void (*)(void) point to the functions that take any arguments and return any value.

https://developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Operators › void

void operator - JavaScript | MDN - MDN Web Docs

This operator allows evaluating expressions that produce a value into places where an expression that evaluates to undefined is desired. The void operator is often used merely to obtain the undefined primitive value, usually using void (0) (which is equivalent to void 0).

https://www.geeksforgeeks.org › cpp-void-pointer

void Pointer in C++ - GeeksforGeeks

In C++, a void pointer is a pointer that is declared using the ‘void‘ keyword (void*). It is different from regular pointers it is used to point to data of no specified data type. It can point to any type of data so it is also called a “Generic Pointer“. Syntax of Void Pointer in C++ void* ptr_name;

https://www.learncpp.com › cpp-tutorial › void-pointers

19.5 — Void pointers – Learn C++ - LearnCpp.com

The void pointer, also known as the generic pointer, is a special type of pointer that can be pointed at objects of any data type! A void pointer is declared like a normal pointer, using the void keyword as the pointer’s type: void* ptr {}; // ptr is a void pointer. A void pointer can point to objects of any data type:

https://www.educative.io › answers › what-is-the-void-keyword-in-c

What is the void keyword in C? - Educative

The literal meaning of void is empty or blank. In C, void can be used as a data type that represents no data. Usage. In C, void can be used as: Return type of a function that returns nothing. Consider the code snippet below, which uses void as a return type.