Conformations of comb-like macromolecules