In C, when a function is declared without any parameters like int fun(), it means it can take variable number of parameters. If you don't want the function to take any parameters in C, you must explicitly declare it as int fun(void).
In C++, this changed. Functions declared without any parameters are equivalent to being declared with void. Variable arguments would need the ellipsis (...) as parameter.
So for C++ you would need to declare it with ellipsis as mentioned in the following link -
http://msdn.microsoft.com/en-us/library/fxhdxye9(v=vs.80).aspx[
^]