摘要:
int data[3][4]; int sum(int (*ar)[4],int size);//定义二维数组为每个一维数组长度为4的指针 int sum(int ar2[][4],int size);//同上 int a[100][4]; int b[6][4]; int total1=sum(a 阅读全文
posted @ 2024-07-19 13:47
zhongta
阅读(10)
评论(0)
推荐(0)
摘要:
1.int gorp=16; int chips=12; const int *p_snack=&gorps; *p_snack=20;//不可以更改指针常量的值 p_snack=&chips//可以,可以更改指针指向 2.int gorp=16; int chips=12; int * const 阅读全文
posted @ 2024-07-19 13:27
zhongta
阅读(30)
评论(0)
推荐(0)