指针数组和数组指针
来源:互联网 发布:广域网优化功能 编辑:程序博客网 时间:2024/05/22 03:25
/*********************************指针数组:array of pointers,即用于存储指针的数组,也就是数组元素都是指针数组指针:a pointer to an array,即指向数组的指针*********************************/#include <stdio.h>typedef int *Array[5];//指针数组typedef int (*pArray)[5];//数组指针int main(void){int a[5] = {1,2,3,4,5};int b[5] = {6,7,8,9,10};pArray array;array = &a;for (int i = 0;i < 5;i++){printf("%d\n",(*array)[i]);}Array _array;for (int j = 0;j < 5;j++){_array[j] = &b[j];printf("%d\n",(*(_array[j])));}getchar();return 0;}
阅读全文
0 0
- 指针和指针数组
- 指针数组和数组指针
- 指针数组和数组指针
- 指针数组和数组指针
- 指针数组和数组指针
- 数组指针和指针数组
- 指针数组和数组指针
- 数组指针和指针数组
- 指针数组和数组指针
- 指针数组和数组指针
- 数组指针和指针数组
- 指针数组和数组指针
- 指针数组和数组指针
- 数组指针和指针数组
- 数组指针和指针数组
- 指针数组和数组指针
- 指针数组和数组指针
- 数组指针和指针数组
- 7、Tensorflow:Session.run和Tensor.eval
- Android 进阶之路:常见设计模式之建造模式
- fmpdam-数据库访问中间件
- 关于自定义view中的文字垂直居中的问题。
- QT怎么设置字体轮廓、字体位置、字体样式、字体间距、窗口背景色大小、隐藏鼠标图标
- 指针数组和数组指针
- python3 爬取学校口语坊信息
- 看题看题看题(重要事情说三遍)
- python webdriver 在谷歌中 将淘宝打开成国外淘宝的的问题
- 深度学习环境配置docker+pycharm+GPU
- python快速查城市的地理坐标
- 主键自增的弊端
- 语音视频社交背后技术深度解析
- Gossip算法