12???????C??????????
???????????? ???????[ 2012/9/7 9:56:58 ] ????????????
????10?????????????????
???????????д???????????????????????????????
???????μ???????δ???
#include<stdio.h>
int main(int argc?? char *argv[])
{
int i = 0;
char buff[100];
memset(buff??0??sizeof(buff));
strncpy(buff?? argv[0]?? sizeof(buff));
memset(argv[0]??0??strlen(buff));
strncpy(argv[0]?? "NewName"?? 7);
// Simulate a wait. Check the process
// name at this point.
for(;i<0xffffffff;i++);
return 0;
}
????11????????????????
??????????????????????????У??????????
#include<stdio.h>
int* inc(int val)
{
int a = val;
a++;
return &a;
}
int main(void)
{
int a = 10;
int *val = inc(a);
printf("
Incremented value is equal to [%d]
"?? *val);
return 0;
}
?????????????????????????????????У???????“inc()”?д??????????????????????????????????????????????????????????“inc()”?????????????????inc??????????????????????????????????????main()?б???“a”???????????????????????????????洢?????
????12??????printf()?????
??????????????????????
#include<stdio.h>
int main(void)
{
int a = 10?? b = 20?? c = 30;
printf("
%d..%d..%d
"?? a+b+c?? (b = b*2)?? (c = c*2));
return 0;
}
???????????????
110..40..60
???????????C???????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11