从apue上, 我们学到, fgetc一定是函数, 而getc可能由宏来实现(但不一定)。 这就是两者的差别, 我们先来看看VC++6.0中的实现吧:
- #include <stdio.h>
-  
- int main()
- {
- 	printf("%d\n", (int)getc); // getc的地址
-  
- 	return 0;
- }
 
顺便, 我们再来复习一下函数指针的概念, 且看程序:
- #include <stdio.h>
-  
- int main()
- {
- 	printf("hello\n");
- 	(&printf)("hello\n");
- 	(*printf)("hello\n");
- 	(**printf)("hello\n");
- 	(***printf)("hello\n");
- 	(****printf)("hello\n");
-  
- 	printf("%d\n", (int)printf);
-  
-  
- 	return 0;
- }

 
                
![战神引擎传奇手游【黯晶灭世[白猪3.1]】最新整理Win系特色服务端+安卓苹果双端+GM授权后台+详细搭建教程](https://cdn.jxasp.com:9143/image/20251028/0F2E0E55BA6157D5F76B8125D0A511AC.jpg)
















