// CTest.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
void print (int i, int j )
{
int a[3][3] = {
{ 1,2,3 },
{ 4,5,6 },
{ 7,8,9 }
};
printf ("%d\n", *(*(a+i)+j) );
printf ("%d\n", a[i][j] );
}
int _tmain(int argc, _TCHAR* argv[])
{
print (0,0);
print (1,1);
print (2,2);
return 0;
}
Возвращает:
1 1 5 5 9 9
* Это было выполнено через компилятор ....