#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
int a = 10;
int b = 20;
int c = 30;
int *p[] = { &a,&b,&c };
int **temp = p;
int n = sizeof(p) / sizeof(p[0]);
int i;
for (i = 0; i < n; i++)
{
printf("%d,%d\n",*p[i],*(*(temp+i)));
}
system("pause");
return 0;
}
c指针操作指针数组
最新推荐文章于 2022-05-04 09:51:46 发布