摘要
C语言开发者追求的是语言的高效性、灵活性,为此在不同程度上忽略了语言的安全性。主要从语法和语义2方面对C语言的陷阱做了一个分析,并针对所涉及的陷阱给出了一定解决方案,为编写安全性要求高的代码提供一些帮助。
The developers of C language pursue high efficiency and flexibility of language, and neglect the security of language to some extent. This paper mainly makes an analysis for C language's traps from such two aspects as grammar and semantics, and gives a certain solution aiming at these traps, and provides some assistance for writing codes with higher security.
出处
《计算机与网络》
2010年第3期139-141,共3页
Computer & Network
关键词
C语言
语法陷阱
语义陷
指针
C Language
grammar trap
semantic trap
pointer