二级指针
2015-06-04 20:28
253 查看
<span style="font-size:18px;">#include <stdio.h> void swap(int **r,int **s)// { int *t; t=*r; *r=*s; *s=t; } main() { int a=1,b=2,*p,*q; p=&a; q=&b; swap(&p,&q); printf("%d,%d\n",*p,*q); }</span>
下左图为二级指针示意图,右图为一级指针示意图
#include <stdio.h> void swap(int *r,int *s) { int *t; t=r; r=s; s=t; } main() { int a=1,b=2,*p,*q; p=&a; q=&b; swap(p,q); printf("%d,%d\n",*p,*q); }
相关文章推荐
- 树莓派连接显示器,显示器一直没有反应怎么办
- aspectC++常用命令
- iOS float小数四舍五入
- Gradient Descent 梯度下降法-R实现
- 程序员是否必须会算法
- 图像处理方向常用网站
- Java 内存区域和GC机制
- Caffe-源码解析--DataLayer
- WP runtime local setting
- IOS开发之----四舍五入问题
- 通用分页存储过程
- 欢迎使用CSDN-markdown编辑器
- 实现医生工作站的医技模板功能的代码(十三)
- Android项目中使用Eclipse导出jar文件
- iOS应用架构谈 网络层设计方案
- mysql 参数模板
- IOS之C语言打印直方图
- Linux环境变量设置文件
- Java的GC机制及算法
- 【easyui】--普通js中获取easyui中分页信息(page,pageSize等)