首页 > 编程语言 > 详细

c语言知识点--loading

时间:2019-12-29 14:28:14      阅读:93      评论:0      收藏:0      [点我收藏+]

1. 函数指令代码执行时在栈空间缓存

2. 函数参数保存在栈空间

3. sprintf最后是输入null

void Example(void)
{
    char szString[10];
    sprintf(szString, "I'm a str.");
    return;
}
/*
该函数越界‘sprintf’ output 11 bytes into a destination of size 10

*/

4. 以下循环是无限循环

unsigned int k = 5;
do {
    k--;
} while(k >= 0);
/*
无符号变量永远为正
*/

c语言知识点--loading

原文:https://www.cnblogs.com/xuzhaoping/p/12114772.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!