摘要: 例子一: #include<stdio.h> int f(int *p){ p = p+1; return printf("%d\n",*p); } void main(){ int a[]={1,2}; int *p = a;//指针p是首地址 f(p);//调用 printf("%d",*p); 阅读全文
posted @ 2021-01-14 13:03 天子坐明堂 阅读(502) 评论(0) 推荐(0)
摘要: 声明:char *strstr(const char *str1, const char *str2) 定义:strstr(str1,str2) 函数用于判断字符串str2是否是str1的子串。如果是,则该函数返回str2在str1中首次出现的地址;否则,返回NULL。 定义说的有点羞涩难懂。举个例 阅读全文
posted @ 2021-01-14 10:23 天子坐明堂 阅读(671) 评论(0) 推荐(0)