Why add void to method parameter list

This is a holdover from older versions of C, where foo() meant “a function with an unknown number of parameters” and foo(void) means “a function with zero parameters.” In C++, foo() and foo(void) both mean “a function with zero parameters”, but some people prefer the second form because it is more explicit.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)