C 2d Array Length Images