Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a[3][3] = {
- { 1, 2, 3},
- { 4, 5, 6},
- { 7, 8, 9}
- };
- int *pa [3];
- pa[0] = a[2]; pa[1] = a[0]; pa[2] = a[1];
- for (int i = 0; i <= 2; i++)
- {
- fprintf(stdout, "%d %d\n", *pa[i] , a[i][i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement