I have never really paid much attention to it, but what is the point of sticking 'void' with the brackets of a function with no parameters?
What is the difference between (void) and just ()?
I have never really paid much attention to it, but what is the point of sticking 'void' with the brackets of a function with no parameters?
What is the difference between (void) and just ()?
There isn't any except explicitly clarifying the function takes no parameters.
In the distant past, as C++ compilers became available to the personal computer market, some compilers would disallow empty parenthesis. Those of us who survived those dark times use (void) out of habit.
(There is a similar issue with C compilers and a warning / error. Something about "obsolete function prototype".)
In any case, (void) makes your intent crystal clear.