下载此文档

《C和指针》学习备忘.doc


文档分类:IT计算机 | 页数:约9页 举报非法文档有奖
1/9
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/9 下载此文档
文档列表 文档介绍
《C和指针》学****备忘
Given the previous foundation, this article only records some previously neglected and valuable knowledge.
not repeat the calculation.
The form of sizeof x is allowed. Sizeof () does not evaluate an expression, so the A in sizeof (a=b+l) is not assigned.
The pointer to the member access structure only.
Sixth chapter pointer
Uninitialized pointers can cause errors. Int *a; *a = 12, which makes the contents of the a pointing address be modified, and the result is unpredictable.
The author thinks that such as search elements not found when the return value is NULL while the pointer is commonly used techniques of C, but contrary to the principles of software engineering: "with a single value of two different meanings is a dangerous thing, because the future is very easy to make clear what is really meant it”. The security policy is to return two values indicating whether the state value of the success and the value of the element found during the lookup are successful.
Seventh chapter function
A prototype declaration of functions without arguments should be written like this: int func (void): the purpose is not to be confused with old style declarations.
Recursion solves problems more clearly than non recursion,
For a complex problem that is difficult to implement in iterative form, the simplicity of recursive implementation can compensate for the overhead it

《C和指针》学习备忘 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数9
  • 收藏数0 收藏
  • 顶次数0
  • 上传人蓝天
  • 文件大小85 KB
  • 时间2022-05-20