摘要: 1)字符串操作 strcpy(p, p1) 复制字符串 strncpy(p, p1, n) 复制指定长度字符串 strcat(p, p1) 附加字符串 strncat(p, p1, n) 附加指定长度字符串 strlen(p) 取字符串长度 strcmp(p, p1) 比较字符串 strcasecm... 阅读全文
posted @ 2015-11-19 21:59 linux_发烧友 阅读(214) 评论(0) 推荐(0)
摘要: #includeint main(){ int a[5]={1,2,3,4,5}; int *ptr=(int *)(&a+1); printf("%d,%d",*(a+1),*(ptr-1)); return 0;}答案 : 2,5.第一次发博客,就和大家分享 一个经典的数组指针问题,希望大家给予... 阅读全文
posted @ 2015-11-06 15:01 linux_发烧友 阅读(456) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2015-11-06 14:54 linux_发烧友 阅读(1) 评论(0) 推荐(0)