-->
当前位置:首页 > 题库

PROGRAMMING:Pointer array

Luz5年前 (2021-05-10)题库444
Analyze the code, understand the pointer array
```
int a[3][3]={1,2,3,4,5,6,7,8,9};
int *pa[3]={a[0],a[1],a[2]};
void print(int *p){
printf("%d,%d,%d\n",*(p+0),*(p+1),*(p+2));
}
int main(){
int i;
for(i=0; i<3; i++)
print(pa[i]);
return 0;
}
Execute program output:
1,2,3
4,5,6
7,8,9
```
###Input example:
```in
```
###Output example:
```out
1,2,3
4,5,6
7,8,9
```







answer:If there is no answer, please comment