| 网站首页 | 文学 | 小说 | 动漫 | 论文 | 军事 | 科技 | 图片 | 教育 | 哲学 | 历史 | 英语 | 
首页>>计算机 >>程序编程 用户登录 新用户注册
Reserved Names

Reserved Names

The names of all library types, macros, variables and functions that come from the ISO C standard are reserved unconditionally; your program may not redefine these names. All other library names are reserved if your program explicitly includes the header file that defines or declares them. There are several reasons for these restrictions:

Other people reading your code could get very confused if you were using a function named exit to do something completely different from what the standard exit function does, for example. Preventing this situation helps to make your programs easier to understand and contributes to modularity and maintainability.
It avoids the possibility of a user accidentally redefining a library function that is called by other library functions. If redefinition were allowed, those other functions would not work properly.
It allows the compiler to do whatever special optimizations it pleases on calls to these functions, without the possibility that the
< 1 >   < 2

在百度搜索:Reserved Names
推 荐
相 关 文 章
  • Linux ioctl() Primer
  • Building Shared Libraries
  • Feature Test Macros
  • 高级套接字函数
  • 用户数据报发送
  • 完整的读写函数
  • 服务器和客户机的信息函数
  • 第六篇:从程序员到系统分析员之一
  • 第七篇:从程序员到系统分析员之二
  • 第五篇:达到目标必经的路 之三