简体   繁体   English

C中printf和scanf函数的定义/主体

[英]Definition/body of the printf & scanf function in C

我在哪里可以找到printf / scanf的定义/主体以及“Borland C”的其他类似的预定义常用函数(getch,clrsr ...等)?

You cannot.. You can just see the prototype of printf/scanf in the header file <stdio.h> 你不能..你可以在头文件<stdio.h>看到printf / scanf的原型

You can find it in the standard library which comes with whatever compiler you are using.. 您可以在标准库中找到它,它随您使用的任何编译器一起提供..

可能你看不到像printf()和scanf()这样的预定义函数的源代码,因为它们已经是扩展名为.lib的编译文件,编译器只需要函数声明,不需要确切的源文件,它们稍后链接链接器生成.exe文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM