C 中指针数组

#include<stdio.h>

typedef unsigned short wchar_t;

int main(){
int c[3][2]={{1,2},{3,4},{5,6}};    //这是定义一个多维的数组
int *a[3] ;                              //这是定义一个指针数组
wchar_t *p = L"hello";         
a[0] = c[0];                           //将C数组值赋给a指针数组a[0] = c[1]; 
printf("%c\n",*(p+2));
printf("%d\n",*(*(a)+2));
return 0;
}

posted on 2010-06-11 11:33  画一个圆圈  阅读(137)  评论(0编辑  收藏  举报

导航