摘要: C 语言中assert.h头文件唯一的目的就是提供了assert宏的定义,这个被称为断言,断言的效果是,如果断言的内容为真,断言就没有任何意义,如果断言为假,程序将执行异常终止。 测试代码: #include <stdio.h> #include <assert.h> int main(int ar 阅读全文
posted @ 2020-08-28 23:32 castor_xu 阅读(202) 评论(0) 推荐(0) 编辑