베스트 답변보다 2번째 답변이 쩐다.

https://stackoverflow.com/questions/8767166/passing-a-2d-array-to-a-c-function/17569578#17569578


원리

https://stackoverflow.com/questions/3368883/how-does-this-size-of-array-template-function-work