小编Col*_*lay的帖子

C 程序中的“原型”是什么?

我用来学习 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 prototype

3
推荐指数
2
解决办法
4678
查看次数

C语句中的声明语句和赋值语句之间的区别?

我是编程和尝试学习C的新手.我正在读一本书,在那里我读到了这些陈述但却无法理解它们的含义.

c difference

0
推荐指数
1
解决办法
1万
查看次数

标签 统计

c ×2

difference ×1

prototype ×1