摘要
格式输出函数printf是C语言中使用频度最高的输出函数之一,由于其使用方式灵活,在实际应用中经常出现一些莫名的错误。依据C语言中可变参数函数的执行流程,给出了printf函数的执行过程,分析了一些错误产生的原因,对于正确使用printf函数具有一定的指导意义。
Format output function prinff is one of the frequently used output functions in the C language, and because its use is flexible, often there are some inexplicable errors in the practical apphcation, Based on the implementation process of functions with variable argtunents in the C language, the implementation process and the reasons for mistakes of use of prinff function are given in this paper. It has a certain significance for the proper use of prinff function.
出处
《信息技术》
2007年第5期134-136,共3页
Information Technology