2013年11月28日

函数指针 指针函数

摘要: 趁热打铁,彻底搞一下,指针函数和函数指针;中国语言博大精深,后边是本质:函数指针-》 是指针 指针函数-》是函数 int fun(int ,int) ->整形函数int * fun(....) ->整形指针函数比如函数库中的strcpy(包括'\0'都要拷贝)char * mystrcpy(char *to, const char *from){ //if(to!=NUll&&from!=NULL) 需要判空char *save = to; //保存起始地址 // for (; (*to = *from) != '/0'; ++fro 阅读全文

posted @ 2013-11-28 01:09 大大世界 阅读(185) 评论(0) 推荐(0) 编辑

导航