![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c
文章平均质量分 77
macandroid
这个作者很懒,什么都没留下…
展开
-
C语言指针和数组
程序1. #include main(){ char a[3][7]={"wphone","abcdef","google"}; char (*p)[3]; int b[3]={3,4,5}; int *ptr=(int *)(&b+1); p=a; printf("%d\n",*(ptr-1)); printf("%c %c\n",*(*(p+2)+1) ,p[2][1]); }输出:5原创 2013-04-13 16:49:16 · 466 阅读 · 0 评论 -
C数据结构之排序
选择排序 =============================================== void SelectSort(RecordType r[], int length) { n=length; for ( i=1 ; i<= n-1; ++i) { k=i; for ( j=i+1 ; j<= n ; ++j) i原创 2013-04-15 20:19:40 · 623 阅读 · 0 评论