About 18,900,000 results
Open links in new tab
  1. What does void* mean and how to use it? - Stack Overflow

    Jul 24, 2012 · A void * can be converted to any other pointer type without an explicit cast. You cannot dereference a void * or do pointer arithmetic with it; you must convert it to a pointer to a …

  2. What does "javascript:void (0)" mean? - Stack Overflow

    Aug 18, 2009 · The void operator evaluates the given expression and then returns undefined. The void operator is often used merely to obtain the undefined primitive value, usually using “ …

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

    Jul 9, 2023 · Generic data pointer: void* data -- 'data' is a pointer to data of unknown type, and cannot be dereferenced Note: the void in a function argument is optional in C++, so int …

  4. Concept of void pointer in C programming - Stack Overflow

    Is it possible to dereference a void pointer without type-casting in the C programming language? Also, is there any way of generalizing a function which can receive a pointer and store it in a void

  5. javascript void functions - Stack Overflow

    The void operator is often used merely to obtain the undefined primitive value, usually using "void (0)" (which is equivalent to "void 0"). In these cases, the global variable undefined can be used …

  6. async/await - when to return a Task vs void? - Stack Overflow

    The async void case is a "fire and forget": You start the task chain, but you don't care about when it's finished. When the function returns, all you know is that everything up to the first await has …

  7. Can I use a return statement in a function returning void?

    Oct 5, 2023 · Yes, you can return from a void function. Interestingly, you can also return void from a void function. For example:

  8. How do I correctly use a void pointer in C? - Stack Overflow

    Nov 20, 2015 · The void pointer in this case allows for a single malloc() function that can return the address of memory for any type of variable. The following shows use of malloc() with …

  9. When can "void ()" be used and what are the advantages of doing so

    Mar 23, 2011 · There is no function called void, but a function can be declared with a return type of void. This means that the function doesn't return a value.

  10. Difference between int main () and int main (void)?

    Sep 1, 2012 · The interesting part is "with no parameters". int main() and int main (void) are currently equivalent, since they are both function declarators and have no parameters.