![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言
文章平均质量分 77
ackfbcu
这个作者很懒,什么都没留下…
展开
-
assert()函数的用法
转载自 GLORY的天空 的博客文章和网友 tr0217,leiallok 的网上发言。 assert宏的原型定义在中,其作用是如果它的条件返回错误,则终止程序执行,原型定义: #include assert.h> void assert( int expression ); assert的作用是现计算表达式 expression ,如果其值为假(即为0),那么它转载 2014-12-07 16:10:39 · 575 阅读 · 0 评论 -
const char *,char * const,char const *的区别
一,含义。助记方法:从右往左读,星号读作pointer to 1,const char *p --> 根据从右往左的方法, 可以看成: p is a pointer to const char 2,char const *p --> 同上 3,char * const p --> p is a const pointer to char 我们来看一道笔试题,题目如下: [题目转载 2014-12-07 14:52:49 · 340 阅读 · 0 评论