码迷,mamicode.com
首页 > 编程语言 > 详细

c语言知识点--loading

时间:2019-12-29 15:05:26      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:sig   des   char   变量   output   sprintf   知识点   知识   保存   

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

标签:sig   des   char   变量   output   sprintf   知识点   知识   保存   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!