The element in group 17 has smaller size.ie size of C is less than D.
Reason;
Atomic radius decreases across a period because valence electrons are being added to the same energy level at the same time the nucleus is increasing in protons. The increase in nuclear charge attracts the electrons more strongly, pulling them closer to the nucleus