scanf 2d array in c specifying only first dimension code example Example: matrix c declaration int disp[2][4] = { 10, 11, 12, 13, 14, 15, 16, 17};