Untitled
unknown
plain_text
a year ago
338 B
7
Indexable
#include <stdio.h>
void main() {
int arr[3][3];
int **ptr;
*ptr=&arr[0][0];
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
scanf("%d",&a[i][j]);
}
}
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
scanf("%d",*(*(ptr+i)+j));
}
printf("\n");
}
}Editor is loading...
Leave a Comment