Understanding the difference between f() and f(void) in C and C++ once and for all
More terminology (C, not C++): a prototype for a function declares the types of its arguments. Otherwise the function does not have a prototype. void f(); // Declaration, but not a prototype void f(void); // Declaration and prototype void f(int a, int b, float c); // Declaration and prototype Declarations that aren’t prototypes are holdovers … Read more