????位?????????? >> ?????????????
12???????C????????????
?????CSDN ???????[ 2015/7/1 15:10:51 ] ?????????????????????
????6.???_exit???
??????????????????校?atexit()????斜???????????
????#include<stdio.h>
????void func(void)
????{
????printf(" Cleanup function called ");
????return;
????}
????int main(void)
????{
????int i=0;
????atexit(func);
????for(;i<0xffffff;i++);
????_exit(0);
????}
???????????_exit()???????????煤???????械???atexit()????????????????atexit()??????exit()????“return”?????????
????7.void*??C????
???????????????????????魏???????????????interger??????????????????
?????????锟�?
????int func(void*ptr)
????????????????????????????????????????????????????????????????????????????????????
????8.*??++????
?????????????????????????????
????#include<stdio.h>
????int main(void)
????{
????char*ptr="Linux";
????printf(" [%c] "??*ptr++);
????printf(" [%c] "??*ptr);
????return 0;
????}
???????????????????????
????[L]
????[i]
???????“++”??“*”????????????????“*ptr++”????“*(ptr++)”????????????ptr++????????*ptr??????????????“L”????????????“i”??
????9.???????????危????????????
?????????????????写?????????????
????#include<stdio.h>
????int main(void)
????{
????char*ptr="Linux";
????*ptr='T';
????printf(" [%s] "??ptr);
????return 0;
????}
??????????????????*ptr=‘T’??????????写???危????????“Linux”??????????????????????效??????????seg-fault?????????
????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???????????????????????????????????????????
???????????????????????婕�???????????????????SPASVO小??(021-61079698-8054)?????????????????????????
??????
????????????????????????Java?????????????????????????????JavaScript??????????????????????JavaScript???????????????????????????位???????????Python?????????????2017???????????????(??)2017???????????????(?)MySQL???????????????????锌?java??Reference??????????????????????????????C++???????????????????校?校???????????????.NET???????????????SQL?.NET???????????????SQL????????Java???????????(????)
???路???
??????????????????
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????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????械????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????