That’s the old-style syntax for parameter lists, which is still supported. In K&R C you could also leave off the type declarations and they would default to int. i.e.
main(argc, argv)
char *argv[];
{
return 0;
}
would be the same function.
More Related Contents:
- How do you pass a function as a parameter in C?
- In a C function declaration, what does “…” as the last parameter do?
- How do I modify a pointer that has been passed into a function in C?
- Arrow operator (->) usage in C
- Default argument promotions in C function calls
- C Programming: malloc() inside another function
- Difference between passing array and array pointer into function in C
- Why does a C-Array have a wrong sizeof() value when it’s passed to a function? [duplicate]
- Effects of the extern keyword on C functions
- Function pointers and address of a function
- An example of use of varargs in C
- Returning a pointer to an automatic variable
- What is the full “for” loop syntax in C?
- C – allocating a matrix in a function
- Function Returning Itself
- Changing array inside function in C
- Two semicolons inside a for-loop parentheses
- Strange warning in a C function const multidimensional-array argument
- in c: func(void) vs. func() [duplicate]
- How to return matrix (2D array) from function? (C)
- What is the reason function names are prefixed with an underscore by the compiler?
- How to use the rand function to make numbers in a specific range?
- Avoiding the main (entry point) in a C program
- 3 plus symbols between two variables (like a+++b) in C [duplicate]
- Function pointer as a member of a C struct
- Function declaration inside of function — why?
- Regex to pull out C function prototype declarations?
- C declaration from standard signal Library
- How can I malloc a struct array inside a function? Code works otherwise
- C pointer notation compared to array notation: When passing to function