K&R syntax is obsolete, you can skip it unless you have to maintain very old code.
// K&R syntax
int foo(a, p)
int a;
char *p;
{
return 0;
}
// ANSI syntax
int foo(int a, char *p)
{
return 0;
}
More Related Contents:
- What are the major differences between ANSI C and K&R C?
- What does 1024LL mean in C [duplicate]
- sscanf Beginner in C
- Sum of the all the numbers between a and b [closed]
- Debugging a linked-list
- Arrow operator (->) usage in C
- Why use double indirection? or Why use pointers to pointers?
- How to work with complex numbers in C?
- Overriding ‘malloc’ using the LD_PRELOAD mechanism
- Execution time of C program
- How to get the sign, mantissa and exponent of a floating point number
- How to capture Control+D signal?
- Multiple arguments to function called by pthread_create()?
- atoi — how to identify the difference between zero and error?
- How does the C offsetof macro work? [duplicate]
- Why does strchr take an int for the char to be found?
- What’s the difference between logical SSE intrinsics?
- Do temp variables slow down my program?
- Two semicolons inside a for-loop parentheses
- Function without return type specified in C
- How does strcmp() work?
- Bit twiddling: which bit is set?
- Standard C library in mingW
- Order of evaluation of arguments in function calling?
- checking for NULL before calling free
- prevent gcc from removing an unused variable
- Adding Unicode/UTF8 chars to a ncurses display in C
- library not found for -lrt with QtCreator [mac os]
- working of fork in c language [closed]
- How do I get the file HANDLE from the fopen FILE structure?