我用来学习 C 的书解释了我无法正确理解的称为“原型”的东西。在书中,以下示例代码解释了这些“原型”。这是什么意思?什么是“原型”?
//* two_func.c -- a program using two functions in one file */
#include <stdio.h>
void butler(void);
int main(void)
{
printf("I will summon the butler function.\n");
butler();
printf("Yes! bring me some tea and writable DVD's.\n");
getchar();
return 0;
}
void butler(void) /*start of function definition*/
{
printf("You rang,sir.\n");
}
Run Code Online (Sandbox Code Playgroud)
请用通俗的语言解释。
我是编程和尝试学习C的新手.我正在读一本书,在那里我读到了这些陈述但却无法理解它们的含义.