#include <stdio.h>
void butler(void); /* ISO/ANSI C 函数原型 */
int main(void) /* 函数头 */
{ /* 函数体开始 */
printf("I will summon the butler function.\n");
butler(); /* 调用 butler 函数 */
printf("Yes. Bring me some tea and writeable CD-ROMS.\n");
return 0;
} /* 函数体结束 */
void butler(void) /* butler 函数 */
{
printf("You rang, sir?\n");
}
输出结果为什么是?
I will summon the butler function.
You rang, sir?
Yes. Bring me some tea and writeable CD-ROMS.而不是
I will summon the butler function.
Yes. Bring me some tea and writeable CD-ROMS
You rang, sir?
是butler的作用?
百度找到“CSDN一位网友说是主函数在printf("Yes. Bring me some tea and writeable CD-ROMS.\n");之前调用了You rang, sir?
主函数?不懂