Skip to main content
Fixed grammar, again.
Source Link
Nate
  • 19.6k
  • 27
  • 75
  • 93

I'm confused about why we need to pass void into C functions:

int f(void) { return 0; } 

versus

int f() { return 0; } 

What is the proper thing to do and why?

I'm confused about why we need to pass void into C functions:

int f(void) { return 0; } 

versus

int f() { return 0; } 

What the proper thing to do and why?

I'm confused about why we need to pass void into C functions:

int f(void) { return 0; } 

versus

int f() { return 0; } 

What is the proper thing to do and why?

Source Link
Nate
  • 19.6k
  • 27
  • 75
  • 93

Using "void" in C

I'm confused about why we need to pass void into C functions:

int f(void) { return 0; } 

versus

int f() { return 0; } 

What the proper thing to do and why?