自学果然是一条不归路。有没有大佬能给我上上课,关于函数代入
2.12 第5题的代码该如何写,前面第二章看的还好好的。结果突然出了这么一个题,我完全没有思路,自己看了网上的答案,可我完全不懂为什么要这么写代码。
#include <stdio.h>
#include <stdlib.h>
int jolly(void);
int deny(void);
int main(void)
{
jolly();
jolly();
jolly();
deny();
system("pause");
return 0;
}
int jolly()
{
printf("For he's a jolly good fellow!\n");
return 0;
}
int deny()
{
printf("Which nobody can deny!\n");
return 0;
}