is the function parameter in C language empty and the same as void label?
#include <stdio.h>
2//int Add ();
3 int Add (void);
4 int main (void)
5 {
6 int i;
7 i = Add (5, 6);
8
9 printf ("%d\n", I);
return 0;
11}
int Add (A, B)
13 {
return a + B;
15}
The most important criterion for function declaration in C language is the function name, and the parameter name in the function parameter list in C language can be the default
The data type in the parameter list in the C language can also be defaulted by default, int.
Add () is not equivalent to add (void); Add (void) explicitly indicates that the ADD function does not receive any parameters, and if the error is transmitted to the participant, the hint is error;
and the Add () indicates the receive parameter, his type is int, just he is a kind of meaningless receive, and will not use this parameter, hint is wring;
C-language function parameters are null and void