RE: A Question About C 10-18-2015, 05:29 AM
#13
Quote:What are all of the differences between having "void" inside the function parentheses and having a blank parameters list?
I already specified the only difference it makes in my first post. 0.o
This is valid:
Code:
void f()
{
}
int main(void)
{
f(3);
return 0;
}This won't compile:
Code:
void f(void)
{
}
int main(void)
{
f(3);
return 0;
}
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)