#include void foo (int m[3][3]) { printf("%d\n", m[1][2]); } int main () { int m[3][3] = {{1,1,1},{2,2,2},{3,3,3}}; foo (m); return 0; }