Top "Void" questions

An incomplete type used as syntactic place-holder for the return type of a method/function when no value is returned.

When is casting void pointer needed in C?

I've been looking at Advanced Linux Programming by Mitchell, Oldham and Samuel. I've seen in the section on pthreads something …

c pointers casting void
Mockito - thenCallRealMethod() on void function

I have been running into a problem when trying to write a JUnit test case and am relatively new to …

unit-testing junit mocking mockito void
Understanding the difference between f() and f(void) in C and C++ once and for all

Ok, so I have heard different opinions on this subject and just want to make sure I understand it correctly. …

c++ c function void
What does casting to `void` really do?

An often used statement like (void)x; allows to suppress warnings about unused variable x. But if I try compiling …

c++ casting compiler-warnings void suppress-warnings
Mockito: how to stub void methods to run some code when called

I want to stub a repository class to test another class (Holder class) that has a repository. The repository interface …

java unit-testing mockito void stubbing
What's the difference between Void and no parameter?

I have a class which defines two overloaded methods public void handle(Void e) protected void handle() Obviously they are …

java void
Why can't we declare a variable of type void?

I'm looking for a formal explanation of that fact in the Standard. I've found what 3.9.1/9 says and trying to give …

c++ language-lawyer void
c++ convert string into void pointer

I use a library that have a callback function where one of the parameters is of type void *. (I suppose …

c++ string casting void void-pointers
How can I resolve this case of "Useless use of a variable in a void context"?

How can I resolve this case of "Useless use of a variable in a void context"? For example: my $err = $…

string perl scope warnings void
What is the point of void operator in JavaScript?

I've seen some people using void operator in their code. I have also seen this in href attributes: javascript:void(0) …

javascript void