(c)
In all, we have 8 squares in which 6 ‘$X$’ have to be placed and It can be done in $\ ^{8}C_{6} = 28$ ways.
But this includes the possibility that either the top or horizontal row does not have any ‘$X$’. Since, we want each row must have at least one ‘$X$’, these two possibilities are to be excluded.
Hence, required number of ways $= 28 - 2 = 26$