C数组地址和数组名区别
来源:互联网 发布:模拟wifi定位软件 编辑:程序博客网 时间:2024/06/05 14:42
#include"stdio.h"#include"stdlib.h"#include"string.h"int main(){int a[5] = {2,3,4,6,8};int b[4][5];for(int i = 0; i< 4; i++) { for(int j = 0 ;j < 5 ;j++) { b[i][j] = i+j; printf("%d",b[i][j]); } printf("\n"); }//printf("%d\n",a);//数组名代表数组第一个元素的首地址。 //printf("%d\n",&a);//数组名前面取&表示对整个数组取地址。 int (*p)[5];p = b;printf("P:%d\n",p);//数组名代表数组第一个元素的首地址,第一个元素为长度为第二位数组的长度。 printf("P++:%d\n",++p);for(int i = 0; i< 3; i++) { for(int j = 0 ;j < 5 ;j++) { printf("%d",*(*(p+i)+j)); } printf("\n"); }}
0 0
- C数组地址和数组名区别
- c数组名和数组地址的区别
- C语言数组首地址和数组名取地址区别
- C语言数组首地址和数组名取地址区别
- C语言数组首地址和数组名取地址区别
- 数组名和数组名取地址的区别
- 数组名和数组名取地址的区别
- 数组名和数组名取地址的区别
- 数组名和数组名取地址的区别
- 数组名和数组名取地址的区别?
- 关于“数组名”和“数组名取地址”的区别
- 数组名和取数组名地址的区别
- 数组名和数组名取地址的区别
- 数组名和数组名取地址的区别
- 数组名和数组名取地址的区别
- 数组名和数组名取地址的区别
- 数组名和数组名取地址的区别
- 数组名和数组名取地址的区别
- mac下webstrom主题设置
- Android中的屏幕适配
- Connection.setAutoCommit使用的注意事项
- 2014年最新前端开发面试题(题目列表+答案 完整版)
- 开发技术前线 第八期 周报
- C数组地址和数组名区别
- 八年了,iPhone为何还在持续高速增长?
- 花生壳怎么用
- ZOJ 3333 Guess the Price 3323 Somali Pirates 3322 Who is Older?(超级水)
- poj 3984
- codeforces 543A Writing Code(dp降维优化,完全背包思想)
- 2014年最新前端开发面试题(题目列表+答案 完整版)
- MySQL replace函数替换字符串语句的用法
- 舆情系统客户端版本3