0

Is there a difference between foo(void) and foo() in C++ or C?

These two function definitions: void foo() { } void foo(void) { } Any difference between these two? If not, why is the void argument there? Aesthetic reasons? Reference from: https://www.interviewbit.com/pwc-interview-questions/

30th Jan 2023, 1:16 PM
SpellO
0 Answers