Main content: function parameter passing, declaration and other details
#include <stdio.h> int ff (); 1, when the function parameter list does not have char, short, float type (that is, is limited to int, double type can be omitted), the function declaration can omit the parameter type description, //But the definition cannot omit the parameter type //2, The parameter name can be omitted when declaring, such as int ff (int); Only description type int main (int argc, char * * argv) {FF (333); FF has 3 parameters, passing only one without error, other variable value unknown int i = f (' a ');p rintf ("i =%d\n", i); return 0;} int ff (double A, int c, int t) //With char, short, float type {printf ("a =%d\n", a);p rintf ("c =%d\n", c);p rintf ("t =%d\n ", t); return 0;} int f (c) char C; ANSI C standard can be defined before, now the test can also use {return C;}
Output:
Program Ape's---C language details 8